java.lang.NoClassDefFoundError的:android.support.v7.app.AppCompatDelegateImplV14在Eclipse [英] java.lang.NoClassDefFoundError: android.support.v7.app.AppCompatDelegateImplV14 in Eclipse
问题描述
我正在我的基于Eclipse的应用程序,成功后设置我的最新的Android支持-V7-应用程序兼容性库项目我面临这个问题,不知道如何纠正它,我的错误日志低于
I am running my app on Eclipse, after successfully setup my project with latest android-support-v7-appcompat library i am facing this issue, don't know how to rectify it, my error log is below
08-12 14:34:09.335: E/AndroidRuntime(7681): java.lang.NoClassDefFoundError: android.support.v7.app.AppCompatDelegateImplV14
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:93)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:77)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:429)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:57)
08-12 14:34:09.335: E/AndroidRuntime(7681): at com.fleetjack.android.apps.viewer.FleetLanding.onCreate(FleetLanding.java:125)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.app.Activity.performCreate(Activity.java:5283)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2299)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.app.ActivityThread.access$700(ActivityThread.java:150)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.os.Handler.dispatchMessage(Handler.java:99)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.os.Looper.loop(Looper.java:137)
08-12 14:34:09.335: E/AndroidRuntime(7681): at android.app.ActivityThread.main(ActivityThread.java:5283)
08-12 14:34:09.335: E/AndroidRuntime(7681): at java.lang.reflect.Method.invokeNative(Native Method)
08-12 14:34:09.335: E/AndroidRuntime(7681): at java.lang.reflect.Method.invoke(Method.java:511)
08-12 14:34:09.335: E/AndroidRuntime(7681): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
08-12 14:34:09.335: E/AndroidRuntime(7681): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
08-12 14:34:09.335: E/AndroidRuntime(7681): at dalvik.system.NativeStart.main(Native Method)
在我的libs文件夹我已经添加了三个jar文件 - >支架设计,supportV4,supportV7-appcompact,GCM(我已删除的appcompact项目库库)
In my libs folder i have added three jar files -> support design, supportV4, supportV7-appcompact, gcm(i have removed libraries in appcompact project library )
除了在我的表现我已经改变了我的应用主题安卓主题=@风格/ Theme.AppCompat
更改活动 AppCompatActivity
,现在,当我试图通过一个例外运行我的应用它。
请帮我解决这个问题
通过谷歌搜索,但所有的解决方案是为Android工作室我使用的Eclipse
As well in my manifest i have changed my app theme to android:theme="@style/Theme.AppCompat"
changed activity to AppCompatActivity
, Now when i try to run my application it always through an exception.
Kindly help me to fix this issue
Searched through google but all the solution is for Android-Studio i am using eclipse
在此先感谢
推荐答案
导入Android的支持 - *在库jar文件,可能会导致错误。
import android-support-* jar files in libs, may causes error.
每个库是Android的项目结构,jar文件不包含Android的项目结构(资源,资产等)。
each library is android-project structure, jar file is not contain android-project structure (res, assets, etc).
导入库项目,并添加引用。
import libraries projects and add reference.
检查您的项目设置。
如果您仍然面临错误,请评论。
if you still facing error, please comment.
这篇关于java.lang.NoClassDefFoundError的:android.support.v7.app.AppCompatDelegateImplV14在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!