Could not find class android.support.v4.app.NotificationCompat$Builder

crbin1 picture crbin1 · May 20, 2013 · Viewed 17.5k times · Source

Today I have a strange error, strange because the app worked some day ago and I don't change anything, I had also updated Android SDK and eclipse.

05-20 08:03:14.217: E/AndroidRuntime(1925): java.lang.NoClassDefFoundError: android.support.v4.app.NotificationCompat$Builder

05-20 08:03:15.918: E/dalvikvm(1716): Could not find class 'android.support.v4.app.NotificationCompat$Builder', referenced from method com.me.app.ObjReminder.setNotification

Why have I this error? How can I solve it?

EDIT: Thanks all, I solve checking 'Android Private Libraries' in 'Order and Export' tab. But I don't understand why the check was disappeared

Answer

Rajnish Mishra picture Rajnish Mishra · Aug 20, 2013

When ever we update our SDK the default support api gets auto updated.

So the previous referenced support library would get obsolate.

You just need to open project properties and update referenced libraries.