I am getting error of google Plus Login Failed error code 17 while using the release apk. In debug apk it is working. not able to figure it out the proper error and solution.Even error message is null.
@Override
public void onConnectionFailed(ConnectionResult result) {
Log.e(TAG, "Google plus login failed : onConnectionFailed");
if (!mIntentInProgress && result.hasResolution()) {
try {
mIntentInProgress = true;
mActivity.startIntentSenderForResult(result.getResolution()
.getIntentSender(), AUTH_CODE_REQUEST_CODE, null, 0, 0, 0);
} catch (SendIntentException e) {
mIntentInProgress = false;
mGoogleApiClient.connect();
}
} else {
if (mGoogleLoginListener != null) // it goes here
mGoogleLoginListener.googlePlusLoginFailed(result.getErrorCode());
}
}
答案 0 :(得分:1)
我终于找到了答案!
根据关于Debug & release的google文档,我们必须使用keytool生成调试和释放SHA-1指纹。我还找到了link。
我接下来的步骤:
对于调试SHA-1:
keytool -list -v -keystore -alias 对于Debug,请替换为debug.keystore路径,例如:
keytool -list -v -keystore C:\ Users \ Desktop.android \ debug.keystore -alias androiddebugkey
密码:android
对于版本SHA-1,请替换为您的密钥库路径和别名密码,例如:
keytool -list -v -keystore C:\ ProjectTest \ keystore \ my-release-key.jks -alias alias_name
密码:您的别名密码。