我已经复制了这个示例应用程序https://github.com/googledrive/android-demos
我按照所有说明SHA1
在Google developer console
.
我遇到了一些问题google play services
(我认为它正在停止)并解决它,我右键单击app > Android tools > Export Signed application package
.
我安装在我的Samsung phone
. 当我启动它时,它要求我选择一个Gmail
帐户,我照做了。然后我Create a folder
从 中选择ListView
,该消息Signing in...This can take a few minutes
出现并且永远无法成功登录。差不多30多分钟了,还在继续。
我签入Logcat
了Eclipse
,我有以下日志。
如何解决这个问题?
05-22 21:38:54.677: E/Parcel(2395): Class not found when unmarshalling: com.google.android.gms.auth.firstparty.shared.PACLConfig
05-22 21:38:54.677: E/Parcel(2395): java.lang.ClassNotFoundException: com.google.android.gms.auth.firstparty.shared.PACLConfig
05-22 21:38:54.677: E/Parcel(2395): at java.lang.Class.classForName(Native Method)
05-22 21:38:54.677: E/Parcel(2395): at java.lang.Class.forName(Class.java:204)
05-22 21:38:54.677: E/Parcel(2395): at java.lang.Class.forName(Class.java:169)
05-22 21:38:54.677: E/Parcel(2395): at android.os.Parcel.readParcelableCreator(Parcel.java:2091)
05-22 21:38:54.677: E/Parcel(2395): at android.os.Parcel.readParcelable(Parcel.java:2055)
05-22 21:38:54.677: E/Parcel(2395): at android.os.Parcel.readValue(Parcel.java:1971)
05-22 21:38:54.677: E/Parcel(2395): at android.os.Parcel.readMapInternal(Parcel.java:2255)
05-22 21:38:54.677: E/Parcel(2395): at android.os.Bundle.unparcel(Bundle.java:223)
05-22 21:38:54.677: E/Parcel(2395): at android.os.Bundle.getString(Bundle.java:1082)
05-22 21:38:54.677: E/Parcel(2395): at android.content.Intent.getStringExtra(Intent.java:4961)
05-22 21:38:54.677: E/Parcel(2395): at com.android.server.am.ActivityStack.startActivityLocked(ActivityStack.java:3784)
05-22 21:38:54.677: E/Parcel(2395): at com.android.server.am.ActivityStack.startActivityMayWait(ActivityStack.java:5008)
05-22 21:38:54.677: E/Parcel(2395): at com.android.server.am.ActivityManagerService.startActivityInPackage(ActivityManagerService.java:3423)
05-22 21:38:54.677: E/Parcel(2395): at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java:254)
05-22 21:38:54.677: E/Parcel(2395): at com.android.server.am.ActivityManagerService.startActivityIntentSender(ActivityManagerService.java:3315)
05-22 21:38:54.677: E/Parcel(2395): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:258)
05-22 21:38:54.677: E/Parcel(2395): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2122)
05-22 21:38:54.677: E/Parcel(2395): at android.os.Binder.execTransact(Binder.java:388)
05-22 21:38:54.677: E/Parcel(2395): at dalvik.system.NativeStart.run(Native Method)
05-22 21:38:54.677: E/Parcel(2395): Caused by: java.lang.NoClassDefFoundError: com/google/android/gms/auth/firstparty/shared/PACLConfig
05-22 21:38:54.677: E/Parcel(2395): ... 19 more
05-22 21:38:54.677: E/Parcel(2395): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.auth.firstparty.shared.PACLConfig" on path: .
05-22 21:38:54.677: E/Parcel(2395): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:64)
05-22 21:38:54.677: E/Parcel(2395): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-22 21:38:54.677: E/Parcel(2395): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
清单.xml
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" android:permission="android.permission.INTERNET">
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>