Skip to content Skip to sidebar Skip to footer

Java.lang.noclassdeffounderror: Android.media.thumbnailutils

i try to use the android.media.ThumbnailUtils class to fetch the video thumbnails from the video which is locate under specified path, for that i use the following code, Bitmap th

Solution 1:

The NoClassDefFoundError makes me think that you're not targeting the right API level. ThumbnailUtils is only in the SDK as of API level 8 (2.2). Are you running against Froyo or later?

Solution 2:

I have stumbled java.lang.NoClassDefFoundError while using a class from a jar in my project. I tried many things and solve this by the following steps: right click on project > properties > Java Build Path > source > add folder > choose /lib (if your jar is in there ofcourse)

Hope this saves a day for you..

Solution 3:

Anytime you get a NoClassDefFoundError, the virtual machine couldn't load the class you asked it to. In most cases, this is due to a classpath problem.

If you're using the Android ADT plugin with Eclipse, much of the classpath work is done for you via the build path. You can check your build path by right-clicking on your project, navigating to Properties>Java Build Path. See if there is a library or project missing there.

Post a Comment for "Java.lang.noclassdeffounderror: Android.media.thumbnailutils"