2014-07-14 19 views
0

今天我更新了我的ADT至V23和SDK 4.4.2,我的项目开始抛出java.lang.NoClassDefFoundError 这里是logcat的java.lang.NoClassDefFoundError,ADT 23.0

07-15 00:30:44.480: E/AndroidRuntime(32252): java.lang.NoClassDefFoundError: com.apprevelations.daaku.Profile 
07-15 00:30:44.480: E/AndroidRuntime(32252): at com.apprevelations.daaku.HomeScreen.onClick(HomeScreen.java:378) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at android.view.View.performClick(View.java:4102) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at android.view.View$PerformClick.run(View.java:17085) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at android.os.Handler.handleCallback(Handler.java:615) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at android.os.Handler.dispatchMessage(Handler.java:92) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at android.os.Looper.loop(Looper.java:155) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at android.app.ActivityThread.main(ActivityThread.java:5520) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at java.lang.reflect.Method.invokeNative(Native Method) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at java.lang.reflect.Method.invoke(Method.java:511) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796) 
07-15 00:30:44.480: E/AndroidRuntime(32252): at dalvik.system.NativeStart.main(Native Method) 

解决这个我按照这些步骤

:Remove all Android Library projects and external jars from the build path. 
:Place all external .jars in libs folder, the ADT should now place them under ' Android Dependencies'. 
:Re-import all your previous Android Library projects the normal way. 

后,它显示com.google.api不能得到解决,但我添加了所有相关的jar文件库已经enter image description here

+0

仅供参考,有很多喋喋不休的在那里约问题最近版本的Android构建工具。 – EJK

+0

你有没有在清单中声明你的活动类? –

+0

是@AbhinavRaja – Himanshu

回答

0

因此,您的图书馆com.apprevelations.daaku加载好,但你看到关于谷歌API的错误。 也许你只是错过了项目清洁。

Eclipse -> Project -> Clean... 

你还可以尝试:

Android Application -> Properties -> Android -> Google APIS(4.2.2 or any) -> Apply -> ok 
Eclipse -> Project -> Clean... 
+0

对不起,它没有工作@Mikel Pascual – Himanshu

+0

我补充说另一个选择我的答案。让我们看看它是否工作 –

+0

当我实现你的第二个选项时,错误消失了,但是当我尝试运行应用程序时,它显示 [2014-07-15 03:04:28 - Dex Loader]无法执行dex:多个dex文件定义Lcom /谷歌/ API /客户端/ HTTP/HttpContent; – Himanshu