Android:Eclipse错误:找不到类" android.support.v7.appcompat.R $ styleable

时间:2015-06-16 08:31:55

标签: android

最近我尝试编译我的项目但是我收到此错误,此错误如下。我做了以下事情:

  • 右键单击库项目文件夹,然后选择Build Path>配置构建路径。
  • 在“订购和导出”选项卡中,检查刚刚添加到构建路径的.jar文件,以便它们可供依赖此库项目的项目使用。例如,appcompat项目要求您导出android-support-v4.jar和android-support-v7-appcompat.jar文件。
  • 取消选中Android依赖项。

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

但没有成功。

我感谢任何帮助。

错误:

06-16 10:11:57.787: E/AndroidRuntime(2342): FATAL EXCEPTION: main
06-16 10:11:57.787: E/AndroidRuntime(2342): Process: com.bustracker, PID: 2342
06-16 10:11:57.787: E/AndroidRuntime(2342): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/appcompat/R$styleable;
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:147)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.support.v7.app.ActionBarActivityDelegateBase.onCreate(ActionBarActivityDelegateBase.java:138)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:123)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at com.bustracker.Splash.onCreate(Splash.java:12)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.app.Activity.performCreate(Activity.java:6289)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2760)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.app.ActivityThread.access$900(ActivityThread.java:177)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.os.Handler.dispatchMessage(Handler.java:102)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.os.Looper.loop(Looper.java:145)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at android.app.ActivityThread.main(ActivityThread.java:5944)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at java.lang.reflect.Method.invoke(Native Method)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at java.lang.reflect.Method.invoke(Method.java:372)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1389)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1184)
06-16 10:11:57.787: E/AndroidRuntime(2342): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.appcompat.R$styleable" on path: DexPathList[[zip file "/data/app/com.bustracker-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
06-16 10:11:57.787: E/AndroidRuntime(2342):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
06-16 10:11:57.787: E/AndroidRuntime(2342):     at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
06-16 10:11:57.787: E/AndroidRuntime(2342):     ... 17 more
06-16 10:11:57.787: E/AndroidRuntime(2342):     Suppressed: java.lang.ClassNotFoundException: android.support.v7.appcompat.R$styleable
06-16 10:11:57.787: E/AndroidRuntime(2342):         at java.lang.Class.classForName(Native Method)
06-16 10:11:57.787: E/AndroidRuntime(2342):         at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
06-16 10:11:57.787: E/AndroidRuntime(2342):         at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
06-16 10:11:57.787: E/AndroidRuntime(2342):         at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
06-16 10:11:57.787: E/AndroidRuntime(2342):         ... 18 more
06-16 10:11:57.787: E/AndroidRuntime(2342):     Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

屏幕截图1

enter image description here

屏幕截图2

enter image description here

0 个答案:

没有答案