Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable

I develop an android application. I use AppCombat Theme and when I run my program, I have a java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable. Its logs are:

Process: com.nomad, PID: 12866
java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable
        at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:107)
        at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:58)
        at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98)
        at com.telera.ui.activities.OABaseActivity.onCreate(OABaseActivity.java:47)
        at android.app.Activity.performCreate(Activity.java:5231)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
        at android.app.ActivityThread.access$800(ActivityThread.java:135)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5017)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
        at com.android.internal.os.ZygoteInit.main(Zygote`

How can I fix that problem?

like image 712
John Error Avatar asked Mar 20 '14 08:03

John Error


1 Answers

java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleableY

You need to reference AppCompat in your Android project. You have not referenced the library project properly.

Check Adding Support Library with resources

like image 70
Raghunandan Avatar answered Oct 25 '22 01:10

Raghunandan