`
yeruowei
  • 浏览: 24263 次
  • 性别: Icon_minigender_2
  • 来自: 西安
社区版块
存档分类
最新评论

Android SDK更新后 ADT R17 E/AndroidRuntime : java.lang.NoClassDefFoundError问题的解决

 
阅读更多

更新了Android SDK 和ADT 到 R17 以后出现了一个问题,就是原来所有引入第三方的jar文件的项目,运行到一旦调用了第三方jar文件里的类的地方,都会出现类似

 E/AndroidRuntime : java.lang.NoClassDefFoundError 的错误。

后来看国外的网站才解决问题http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17/comment-page-1#comment-4346

简单的说一下解决方法:

  • 将所有的第三方jar文件从 standard Java build path中移除 :
    • 右键项目名 > Properties > Java Build Path > tab Libraries >将 “Android X.X” and the “Android Dependencies”之外的所有jar文件引用全部去除
  • 重命名lib文件夹 为libs
    • 一旦这样做了以后,libs库文件夹就能被 Android plugin 添加到  “Android Dependencies” 条目里。
  • Clean the project (非必要)
  • 一切OK。

这个问题的原因:

  • This problem is due to the fact that libraries are not managed the same way with the new ADT build.
  • Instead of having 2 different managements of libraries (one for Android Library Projects, one for the standard jars), now both are merged into the Android Dependencies item.

原文:http://www.cnblogs.com/changety/articles/Android_ADT_SDK_v17_AndroidRuntime.html

分享到:
评论

相关推荐

    adnroid[SDK_ADT安装与配置

    adnroid[SDK_ADT安装与配置

    android-sdk_r06-windows(2.2) + ADT-0.9.7 2010-08-10 最新(1)

    android-sdk_r06-windows 安装说明,解决不能安装问题。 ADT:Windows Eclipse 中选择ADT-0.9.7.RAR包,进行安装。 android-sdk + ADT-0.9.7.RAR下载地址: 1:http://download.csdn.net/source/2611163 2:...

    Android ADT-0.9.6

    Android ADT-0.9.6.zip官方下载地址: http://dl.google.com/android/ADT-0.9.6.zip Android ADT-0.9.7.zip官方下载地址: http://dl.google.com/android/ADT-0.9.7.zip Android ADT-0.9.8.zip官方下载地址: ...

    解决Android-sdk安装问题说明

    android-sdk + ADT-0.9.7.RAR下载地址: 1:http://download.csdn.net/source/2611163 2:http://download.csdn.net/source/2611176 单独的ADT-0.9.7.zip下载地址: http://download.csdn.net/source/2611191 本人...

    2018718(最新eclipse 下android开发工具包),集成了sdk,SDKManager,eclipse都是配套的,我一直再用它开发

    2018718(最新eclipse 下android开发工具包),集成了sdk,SDKManager,eclipse都是配套的,我一直再用它开发 adt-bundle-windows-x86_64(最新链接,请到我的百度网盘下载: 链接:...

    Android ADT-8.0.0.zip

    Android ADT-X.X.X.zip 官方下载地址: http://dl.google.com/android/ADT-8.0.0.zip http://dl.google.com/android/ADT-0.9.9.zip http://dl.google.com/android/ADT-0.9.8.zip ...

    Android8.1 替换本地adb

    2、 解压 sdk 包,将 adt-bundle-windows-x86_64-20140321\sdk\platform-tools 目录下文件 Adb, AdbWinApi.dll, AdbWinUsbApi.dll 三个文件 Copy 到 C:\Windows\System32 目录下。 3、 运行 cmd,输入 adb 看看是否...

    Android SDK更新问题

    更新ADT时无法解析https://dl-ssl.google.com/android/eclipse,解决SDK无法更新的问题

    12306火车票订票助手V1.0

    欢迎大家使用火车侠订票注册。免费版可以自动登录和在IE中打开。注册版可以自动订票提交订单,提交过程中...有效的增加了订票的可能性。 感谢大家使用。更多请联系QQ317379184或者q317379184.oicp.net QQ群81547758

    android 扫描二维码 [android-support-v7-appcompat] eclipse的完整项目

    E/AndroidRuntime: FATAL EXCEPTION: main Process: com.arcsoft.arcfacedemo, PID: 22855 java.lang.NoSuchFieldError: No static field abc_textfield_search_default_mtrl_alpha of type I in class Landroid/...

    适合AndroidSDK6.0的ADT23.0.07

    国内国外很难下到ADT23.0.7版本,官网下载也需要一定的眼力,一般只有23.0.6,而Android6.0需要此版本的ADT

    Genymotion插件1.0.5(ADT、Android Studio)和reg.exe

    附上最新版本ADT(虽然不再更新): linux 64 bit: http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip linux 32 bit: http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip ...

    Android代码-ThumbPilot

    [Install Eclipse Plugin] http://developer.android.com/sdk/eclipse-adt.html Start Eclipse, then select Help > Install New Software. In the Available Software dialog, click Add.... In the Add Site ...

    Android ADT 插件, ADT-22.0.0.zip

    Android ADT 插件, ADT-22.0.0.zip 最新版.

    Android实验指导(1).doc

    Android实验指导 实验一:系统安装与HelloWorld 【目的】 安装智能手机开发相关软件平台。 【要求】 1. 完成智能手机开发平台安装、以及... 利用布局安排各种控件,设计良好用户界面 "<LinearLayout " "xmlns:android=...

    搭建Android开发环境教程

    更新 Eclipse,下载 ADT(Android 开发插件) 1. 启动Eclipse, 选择 Help > Software Updates > Find and Install.... 2. 弹出对话框后,选择 Search for new features to install 点击Next. 3. 点击 New Remote ...

    Android SDK Manager无法更新问题解决办法

    Android SDK Manager无法更新问题解决办法 最近玩ubuntu系统,以前Windows下下载的SDK文件不能用了,只能重新下载,安装完Eclipse和ADT插件,却发现无法更新SDK,显示为: Fetching ...

    DigGold(https://pan.baidu.com/s/1boT8GhT)

    基于vnpy1.6.1 二次开发,定制化cta交易策略,回测年化收益率80%+

Global site tag (gtag.js) - Google Analytics