java.lang.NoClassDefFoundError: android/util/Log

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.

,

you can change your scala version to 2.11.11

Solutions on the web

java.lang.NoClassDefFoundError: android/util/Log
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.slf4j.impl.AndroidLoggerAdapter.isLoggable(AndroidLoggerAdapter.java:544)
at org.slf4j.impl.AndroidLoggerAdapter.formatAndLog(AndroidLoggerAdapter.java:531)
at org.slf4j.impl.AndroidLoggerAdapter.info(AndroidLoggerAdapter.java:299)
at com.github.sarxos.webcam.Webcam.getDriver(Webcam.java:971)
at com.github.sarxos.webcam.Webcam.getDiscoveryService(Webcam.java:1156)
at com.github.sarxos.webcam.Webcam.getWebcams(Webcam.java:812)
at com.github.sarxos.webcam.Webcam.getDefault(Webcam.java:879)
at com.github.sarxos.webcam.Webcam.getDefault(Webcam.java:856)
at javaapplication9.TakePictureExample.main(TakePictureExample.java:36)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2504 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.