編譯我的android應用程序時遇到問題。我的應用程序使用谷歌api客戶端庫,該應用程序在構建時保持關閉。我一直在嘗試調試3個小時,我仍然無法弄清楚。任何人有想法解決這個問題?Google Api客戶端NoClassDefFoundError ApacheHttpTransport
錯誤日誌:
java.lang.NoClassDefFoundError: com.google.api.client.http.apache.ApacheHttpTransport at com.google.api.client.extensions.android2.AndroidHttp.newCompatibleTransport(AndroidHttp.java:53) at com.redditandroiddevelopers.googletasksclient.GoogleTasksClientActivity.(GoogleTasksClientActivity.java:67) at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1429) at android.app.Instrumentation.newActivity(Instrumentation.java:1021) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) at android.app.ActivityThread.access$2300(ActivityThread.java:125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method)
爲您的信息,我通過使用maven添加依賴關係,目前依賴關係是[鏈接](http://i.imgur.com/omril.png)。並且,它仍然會拋出錯誤。任何建議? – damniatx 2012-03-25 04:03:02
它看起來像我需要手動添加庫,maven無法加載庫。謝謝。 – damniatx 2012-03-25 07:29:05