Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Android key signing on Windows for React Expo app?

$
0
0

I'm currently following this tutorial (https://medium.com/@inaguirre/react-native-login-with-google-quick-guide-fe351e464752) to add "Login with Google." I got the OAuth client ID working for iOS, but for Android, it requires an SHA-1 certificate fingerprint.
enter image description here

I tried:

openssl rand -base64 32 | openssl sha1 -c  

and (I replaced the "path-to-debug-or-production-keystore" with the full file path)

keytool -keystore path-to-debug-or-production-keystore -list -v   

but neither of these work. A lot of advices given online is from the context of using Android Studio, but I'm using VS Code for an Expo app.

I get this error when I run the second, keytool command in the Command Prompt & PowerShell.

keytool error: java.lang.Exception: Keystore file exists, but is empty: C:\Users\User\Desktop\appjava.lang.Exception: Keystore file exists, but is empty: C:\Users\User\Desktop\app        at sun.security.tools.keytool.Main.doCommands(Unknown Source)        at sun.security.tools.keytool.Main.run(Unknown Source)        at sun.security.tools.keytool.Main.main(Unknown Source)

I also tried running

keytool -keystore path-to-debug-or-production-keystore -list -v   

within the folder that contains the keytool.exe file within the Program Files/Java/jre1.8.0_241 folder, but same error.

Any help?
Thanks


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>