【问题标题】:React-native Expo build: "Illegal option: -jarfile" Error when trying to generate SHA1 certificate for Google API key androidReact-native Expo build:“非法选项:-jarfile”尝试为 Google API 密钥 android 生成 SHA1 证书时出错
【发布时间】:2018-03-09 18:35:52
【问题描述】:

我正在按照 Google 身份验证集成的“构建独立应用程序”部分中提到的步骤进行操作,但我被困在按照链接 https://docs.expo.io/versions/latest/sdk/google.html#run-keytool--list--printcert--jarfile-growlerapk--grep-sha1--awk--print-2--where-growlerapk-is-the-name-of-the-apk-produced-in-step-1 生成“SHA-1 证书指纹”的步骤中

我收到一个错误:

非法选项:-jarfile

当我运行命令时:

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

我看到在为 Facebook 身份验证构建独立 Android 应用时也使用了相同的命令。

GitHub 问题链接https://github.com/expo/exp/issues/71

【问题讨论】:

    标签: android react-native sha1 google-authentication expo


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-05
      • 1970-01-01
      • 2017-06-07
      • 2019-12-24
      • 2017-05-14
      • 2022-09-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多