1. Referenct *1 and try to use the Terminal in Android Studio and type
Woindows version:
"keytool -exportcert -alias androiddebugkey -keystore C:\Users\XXXXX.android\debug.keystore -list -v"
macOS version:
"keytool -exportcert -alias androiddebugkey -keystore /Users/XXXXX/.android/debug.keystore -list -v"
Not the keystore that you generate, once you want the debug mode.
The path for the "debug.keystore" and the password is "android"
2. Setting SHA1 in https://console.developers.google.com and create OAuth ID and API Key.
And past the key number to your Android Project.
ex:
And past the key number to your Android Project.
ex:
API Key
https://developers.google.com/drive/android/get-started#get_an_android_certificate_and_register_your_application
If you can login sucess from the above step, then you could do the familiar step to use GoogleMap API.
https://developers.google.com/maps/documentation/android-api/signup
*1 https://github.com/googledrive/android-demos/issues/43
*2 https://github.com/googledrive/android-quickstart/issues/7
0 意見:
張貼留言