标准的谷歌驱动器android-demo无法正常工作

时间:2014-10-15 19:26:47

标签: android google-drive-api

我已从以下网址下载了演示:https://github.com/googledrive/android-demos在Google云端控制台中添加了必要的凭据。我创建了一个Oath cliendId并提到了SHA1签名。

正在加载应用程序,但点击任何链接时,它会在移动应用程序中显示错误

  

Google Play服务的未知问题

同样在logcat中,消息如下:

10-16 00:27:57.915  17648-17648/com.google.android.gms.drive.sample.demo E/GooglePlayServicesUtil﹕ Internal error occurred. Please see logs for detailed information
10-16 00:27:59.305  17648-17648/com.google.android.gms.drive.sample.demo D/GestureDetector﹕ [Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 3 mFalseSizeCnt:0
10-16 00:28:00.240  17648-17648/com.google.android.gms.drive.sample.demo E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-16 00:28:00.240  17648-17648/com.google.android.gms.drive.sample.demo E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-16 00:28:01.370  17648-17648/com.google.android.gms.drive.sample.demo D/GestureDetector﹕ [Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 2 mFalseSizeCnt:0
10-16 00:28:01.845  17648-17648/com.google.android.gms.drive.sample.demo E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-16 00:28:01.845  17648-17648/com.google.android.gms.drive.sample.demo E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-16 00:28:02.645  17648-17648/com.google.android.gms.drive.sample.demo I/BaseDriveActivity﹕ GoogleApiClient connection failed: ConnectionResult{statusCode=INTERNAL_ERROR, resolution=null}
10-16 00:28:02.650  17648-17648/com.google.android.gms.drive.sample.demo E/GooglePlayServicesUtil﹕ Internal error occurred. Please see logs for detailed information

请帮我调试一下。

PS:

我在BaseDemoActivity.onResume()方法中添加了这一行:

 showMessage("isGooglePlayServicesAvailable:"
            +     GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext()));

它返回0,代表SUCCESS

0 个答案:

没有答案