我试图启动一个选择帐户对话框的意图,我通过GoogleAccountCredential.newChooseAccountIntent
获得。GoogleAccountCredential选择帐户内容
当我编译我的源代码时,发生错误NoClassDefFoundError
。
这是我的错误日志:
12-18 09:55:51.237: E/AndroidRuntime(25809): FATAL EXCEPTION: main
12-18 09:55:51.237: E/AndroidRuntime(25809): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker
12-18 09:55:51.237: E/AndroidRuntime(25809): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.newChooseAccountIntent(GoogleAccountCredential.java:171)
12-18 09:55:51.237: E/AndroidRuntime(25809): at com.arcticcoding.study.OverView.onCreate(OverView.java:67)
12-18 09:55:51.237: E/AndroidRuntime(25809): at android.app.Activity.performCreate(Activity.java:4465)
12-18 09:55:51.237: E/AndroidRuntime(25809): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
您的设备是否有谷歌播放服务安装?在尝试使用Google Play服务API之前,您需要检查它是否已安装。 –