Eclipse中的java.lang.NoClassDefFoundError:android.support.v7.app.AppCompatDelegateImplV14 [英] java.lang.NoClassDefFoundError: android.support.v7.app.AppCompatDelegateImplV14 in Eclipse

查看:331
本文介绍了Eclipse中的java.lang.NoClassDefFoundError:android.support.v7.app.AppCompatDelegateImplV14的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse上运行我的应用程序,在使用最新的android-support-v7-appcompat库成功安装我的项目后,我面临这个问题,不知道如何纠正它,我的错误日志在下面

  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):在android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:93)
08-12 14:34 :09.335:E / AndroidRuntime(7681):在android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:77)
08-12 14:34:09.335:E / AndroidRuntime(7681):at Android App.rar (AppCompatActivity.java:57)
08-12 14:34:09.335:E / AndroidRuntime(7681):在com.fleetjack.android.apps.viewer.FleetLanding.onCreate(FleetL anding.java:125)
08-12 14:34:09.335:E / AndroidRuntime(7681):在android.app.Activity.performCreate(Activity.java:5283)
08-12 14: 34:09.335:E / AndroidRuntime(7681):在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
08-12 14:34:09.335:E / AndroidRuntime(7681):在android.app (A)活动线08-12 14:34:09.335:E / AndroidRuntime(7681):android.app.ActivityThread.access $ 700(ActivityThread.java:150)
08-12 14:34:09.335:E / AndroidRuntime ):at android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1280)
08-12 14:34:09.335:E / AndroidRuntime(7681):在android.os.Handler.dispatchMessage(Handler。 java:99)
08-12 14:34:09.335:E / AndroidRuntime(7681):在android.os.Looper.loop(Looper.java:137)
08-12 14:34: 09.335:E / Andr oidRuntime(7681):在android.app.ActivityThread.main(ActivityThread.java:5283)
08-12 14:34:09.335:E / AndroidRuntime(7681):在java.lang.reflect.Method.invokeNative (Native Method)
08-12 14:34:09.335:E / AndroidRuntime(7681):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):在dalvik.system.NativeStart.main本地方法)

在我的libs文件夹中,我添加了三个jar文件 - >支持设计,supportV4,supportV7 -appcompact,gcm(我已经删除了在appcompact项目库中的库)



同样在我的清单我已将我的应用程序主题更改为 android:主题=@ style / Theme.AppCompat将活动更改为 Ap pCompatActivity ,现在当我尝试运行我的应用程序时总是通过一个异常。
请帮我解决这个问题
通过谷歌搜索,但所有的解决方案是为Android-Studio我正在使用eclipse



提前感谢

解决方案

在libs中导入android-support- * jar文件可能会导致错误。



每个库都是android-project结构,jar文件不包含android-project结构(res,assets等)。



导入库项目并添加引用



检查您的项目设置。


  1. import'android-support-v7 -appcompat库作为项目?

  2. 清洁Android-support-v7-appcompat库和您的项目。

  3. 检查您的项目,引用appcompat库。


  4. 检查构建路径


如果您仍然面临错误,请发表评论。


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)

In my libs folder i have added three jar files -> support design, supportV4, supportV7-appcompact, gcm(i have removed libraries in appcompact project library )

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

Thanks in advance

解决方案

import android-support-* jar files in libs, may causes error.

each library is android-project structure, jar file is not contain android-project structure (res, assets, etc).

import libraries projects and add reference.

check your project settings.

  1. import 'android-support-v7-appcompat library' as project?
  2. clean android-support-v7-appcompat library and your project.
  3. check your project, referencing appcompat library.

  4. check build path

if you still facing error, please comment.

这篇关于Eclipse中的java.lang.NoClassDefFoundError:android.support.v7.app.AppCompatDelegateImplV14的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆