0
我想使用谷歌驅動器SDK上傳文件,但我得到彈出說unfortunately your application has stopped
。這是由於NoClassDefFoundError
。我也確保包括播放服務jar,並在訂單和導出標籤中檢查它。谷歌驅動器SDK應用程序上傳文件
這是錯誤時拋出:
E/AndroidRuntime(4906): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker
E/AndroidRuntime(4906): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.
newChooseAccountIntent(GoogleAccountCredential.java:253)
E/AndroidRuntime(4906): at com.example.informationretreival.MainActivity.onCreate(MainActivity.java:42)
E/AndroidRuntime(4906): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime(4906): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime(4906): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2147)
E/AndroidRuntime(4906): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
E/AndroidRuntime(4906): at android.app.ActivityThread.access$600(ActivityThread.java:144)
E/AndroidRuntime(4906): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
E/AndroidRuntime(4906): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(4906): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(4906): at android.app.ActivityThread.main(ActivityThread.java:5074)
E/AndroidRuntime(4906): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(4906): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(4906): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime(4906): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime(4906): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 771): Force finishing activity com.example.informationretreival/.MainActivity
我在developer website我從字面上剛剛複製的代碼快速入門以下。我希望快速入門的例子能夠工作。有人請給我指出正確的方向。
我的構建目標是API 17 Google API。所以,我不認爲這是問題。 –