adt升級導致FileNotFoundException解決辦法

今天研究下android平臺下的消息推送,有現成的開源項目androidpn ,按照介紹試了下,但是卻報某各類找不到。把引用到的包lib改成libs也不管用,後來把依賴到的jar從buildpath中移除(右鍵->remove from buildpath),然後在項目上面右鍵->Android Tools->fix project properties,完事,問題解決之。

以下是錯誤log

E/AndroidRuntime(525): java.lang.NoClassDefFoundError: org.androidpn.client.PersistentConnectionListener
E/AndroidRuntime(525): at org.androidpn.client.XmppManager.<init>(XmppManager.java:98)
E/AndroidRuntime(525): at org.androidpn.client.NotificationService.onCreate(NotificationService.java:115)
E/AndroidRuntime(525): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2780)
E/AndroidRuntime(525): at android.app.ActivityThread.access$3200(ActivityThread.java:119)
E/AndroidRuntime(525): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1917)
E/AndroidRuntime(525): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(525): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(525): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(525): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(525): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(525): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(525): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(525): at dalvik.system.NativeStart.main(Native Method)

注意,雖然在這裏http://www.cnblogs.com/hanyonglu/archive/2012/03/16/2399655.html 和這裏都有解決方法,但是對於我的不管用(adt 20)http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17/comment-page-1#comment-4346

原文地址http://marspring.mobi/adt-filenotfoundexception/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章