我正在尝试在我的
Android Applciation中实现Google Drive,并获取java.lang.NoClassDefFoundError:com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential
错误,所以谁知道如何解决这个问题.
错误,所以谁知道如何解决这个问题.
我现在还试过
>成功导入Google云端硬盘所需的所有.jar
>导入Google Play服务库.在我的项目中成功
>尝试重新启动eclipse并检查但是同样的错误即将来临
>从谷歌Drive API或Android的Play服务获得API密钥和客户端ID
>已经按照here访问了一些解决方案
并尝试与Here相同
这是我的Logcat-
03-21 15:03:55.194: E/AndroidRuntime(940): FATAL EXCEPTION: main 03-21 15:03:55.194: E/AndroidRuntime(940): java.lang.NoClassDefFoundError: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential 03-21 15:03:55.194: E/AndroidRuntime(940): at com.example.alltaskass.GoogleDrive.onCreate(GoogleDrive.java:53) 03-21 15:03:55.194: E/AndroidRuntime(940): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048) 03-21 15:03:55.194: E/AndroidRuntime(940): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1700) 03-21 15:03:55.194: E/AndroidRuntime(940): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1752) 03-21 15:03:55.194: E/AndroidRuntime(940): at android.app.ActivityThread.access$1500(ActivityThread.java:123) 03-21 15:03:55.194: E/AndroidRuntime(940): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993) 03-21 15:03:55.194: E/AndroidRuntime(940): at android.os.Handler.dispatchMessage(Handler.java:99) 03-21 15:03:55.194: E/AndroidRuntime(940): at android.os.Looper.loop(Looper.java:126) 03-21 15:03:55.194: E/AndroidRuntime(940): at android.app.ActivityThread.main(ActivityThread.java:3997) 03-21 15:03:55.194: E/AndroidRuntime(940): at java.lang.reflect.Method.invokeNative(Native Method) 03-21 15:03:55.194: E/AndroidRuntime(940): at java.lang.reflect.Method.invoke(Method.java:491) 03-21 15:03:55.194: E/AndroidRuntime(940): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 03-21 15:03:55.194: E/AndroidRuntime(940): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 03-21 15:03:55.194: E/AndroidRuntime(940): at dalvik.system.NativeStart.main(Native Method)
先感谢您