簡體   English   中英

React-native Expo構建:“非法選項:-jarfile”嘗試為Google API密鑰android生成SHA1證書時出錯

[英]React-native Expo build: “Illegal option: -jarfile” Error when trying to generate SHA1 certificate for Google API key android

我正在按照Google身份驗證集成的“構建獨立應用程序”部分中提到的步驟進行操作,並且按照步驟https://docs.expo.io/versions停留在生成“ SHA-1證書指紋”的步驟/latest/sdk/google.html#run-keytool--list--printcert--jarfile-growlerapk--grep-sha1--awk--print-2--where-growlerapk-is-the-name-of-第1步生成的APK

我收到一個錯誤:

非法選項:-jarfile

當我運行命令時:

keytool -list -printcert -jarfile growler.apk | grep SHA1 | awk '{ print $2 }'

我看到在構建用於Facebook身份驗證的獨立Android應用程序中也使用了相同的命令。

GitHub問題的鏈接https://github.com/expo/exp/issues/71

您很可能必須更新您的keytool二進制文件。 參見https://forums.expo.io/t/generate-androidstandaloneappclientid-help/3422/7

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM