java.lang.ClassNotFoundException: android.support.v4.os.BuildCompat


Samebug tips

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.


9 months ago
Expert tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.


7 months ago
Expert tip

Solutions on the web

Solution icon of stackoverflow
android.support.v4.os.BuildCompat

Solution icon of stackoverflow
android.support.v4.os.BuildCompat

Solution icon of stackoverflow
android.support.v4.widget.CoordinatorLayout

Solution icon of stackoverflow
android.support.v4.content.FileProvider

Solution icon of stackoverflow
android.support.v4.content.LocalBroadcastManager

Solution icon of web
via codegur.com by Unknown author, 1 year ago
android.support.v4.content.FileProvider

Solution icon of web
android.support.v4.util.ArrayMap

Solution icon of web
android.support.v4.util.ArrayMap

Solution icon of github
via GitHub by ming030890
, 1 year ago
android.support.v4.content.FileProvider

Solution icon of github
android.support.v4.view.ViewPager

Stack trace

java.lang.ClassNotFoundException: android.support.v4.os.BuildCompat
	at java.lang.Class.classForName(Native Method)
	at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
	at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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
2 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2022 more bugmates