問題描述
我剛剛將我的 android SDK 工具更新到新發布的版本(工具版本 22,平臺工具版本 17)
I have just updated my android SDK tools to the newly released version (tools version 22, platform tools version 17)
java.lang.NoClassDefFoundError
.classpath 文件已修改.更新中添加了一行:
The .classpath file was modified. The update in added a line :
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
在 SDK 工具更新之前,我所有的項目都運行良好!!
Before the SDK tools update, all my projects worked well !!
我以這種方式糾正了我的問題:
- 在項目屬性 (eclipse) -> java build path -> order and export 中確保檢查 libs 文件夾中的所有 jar.
- 還有Android 工具 -> 修復項目屬性"
- 還有項目 -> 清理"
但我不明白為什么!有人能解釋一下嗎?
But I don't understand why! Would anybody have an explanation ?
推薦答案
我通過進入 Java Build Path > Order and Export 選項卡來修復它.
I fixed it by going into Java Build Path > Order and Export tab.
單擊列表中的所有內容Android 私有庫".
Click everything in the list "Android Private Libraries".
然后是項目 -> 清理".這解決了我的問題.
Then "Project -> Clean". That fixed my issue.
在這個問題上剛剛超過 1.5 天,通過閱讀 Google+ 解決了我的問題.
Just over 1.5 days on this issue, solved my problem by reading Google+.
這篇關于Android 應用程序在 SDK-tools 更新版本后崩潰(NoClassDefFound,工具版本 22)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!