我一直在尝试从模拟器连接到Google云端硬盘,我已经完成了Google API注册。奇怪的是,如果我在移动设备上运行,它运行没有问题, 但如果它在模拟器下运行,则会提示
在logcat中谷歌播放服务的未知问题
错误是:
06-22 06:25:03.685: I/BaseDriveActivity(2547): GoogleApiClient connection failed: ConnectionResult{statusCode=unknown status code 1500, resolution=null}
mGoogleApiClient.connect();
似乎给出了这个错误。我似乎无法进一步调试。
@Override
protected void onResume() {
super.onResume();
if (mGoogleApiClient == null) {
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Drive.API)
.addScope(Drive.SCOPE_FILE)
.addScope(Drive.SCOPE_APPFOLDER) // required for App Folder sample
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
}
//if(mGoogleApiClient.isConnected()) mGoogleApiClient.disconnect();
mGoogleApiClient.connect();
...
我试过以下,似乎没有帮助。 dialog unknown issue in google play services when try to use Google Drive sample