Open ghost opened 3 years ago
I can't seem to reproduce this problem; here are the steps I followed:
keytool -keystore ~/.android/debug.keystore -list -v
.Make sure that the apk you're running matches the SHA-1 cert fingerprint listed in the Google Cloud console using Android/sdk/build-tools/30.0.1/apksigner verify --print-certs built-unity-game.apk
.
I'm also using gradle-6.8.3, but I don't think that should matter (posting just in case)
I already have two other apps (made using Android Studio) that are using the same OAuth 2.0 client (I run only one of them at a time). I thought that was an issue, so I made a new one and assigned it a new name but it had the same SHA key as the previous OAuth 2.0 client (obtained by running keytool -keystore ~/.android/debug.keystore -list -v
). Could that be causing an issue? Should I create a new keystore and get a new SHA Key for that and try again?
@devbridie you seem to have done the steps on ubuntu and not Windows 10. I created a new OAuth2.0 client (what do you mean by configuring the OAuth consent screen?) and set the SHA-1 key. Do I also need to set the keystore inside Unity3d?
I think Unity should use the default debug keystore for Build And Run
builds (~/.android/debug.keystore
, %USERPROFILE%\.android\debug.keystore
on Windows, I think), but you could try creating and assigning a new keystore in Publishing Settings and using that SHA-1 key in the cloud console instead.
I created a new keystore and added it in the Publishing Settings and added the new key to the cloud console as well but I still get the same error.
what do you mean by configuring the OAuth consent screen?
I'm referring to this part (though you've probably already done it already):
More troubleshooting; double checking all bases here:
adb shell pm list packages
?apksigner verify --print-certs built-unity-game.apk
).adb install built-unity-game.apk
Your persistent cloud anchor app does not work. Fix it and update the sample app. I already tried the two apps I made using Sceneform and ARCore+OpenGL in Android Studio and I was able to host keyless anchors for 365 days without running into any error.
My Unity version is 2020.3.8f1 and I am using the recommended Gradle version. I even used the Gradle version recommended here but I get the same error. I followed the tutorial steps here but instead of using a key, I set it to keyless (because I want to host anchors for 365 days).