英文:
API key not found. Check that com.google.android.geo.API_KEY Error in expo development build
问题
"我已经在app.json中添加了密钥,但仍然出现此错误。"API密钥未找到。请检查com.google.android.geo.API_KEY"
我已经在Google凭据中添加了密钥和SHA-1,但错误仍未解决。请提供解决方案。"
英文:
I have add the key in app.json but still this error occurs. "API key not found. Check that com.google.android.geo.API_KEY"
I have added the key and SHA-1 in google credentials but still error is not resolved. Please provide the solution.
答案1
得分: 1
通过 Expo 重新构建开发版本,使用以下命令:
eas build --profile development --platform android
或者使用你所用的构建方式,然后再尝试。
API 密钥的更改在热重载应用时不会更新,你需要重新构建它。
我曾经遇到过相同的问题,这是我解决它的方式。
你的 app.json 看起来没问题。
英文:
Rebuild development build through expo with
eas build --profile development --platform android
or whatever build you use and try again.
The api key changes aren't updated when you hot reload the app, you need to rebuild it.
I had the same issue and that's how I solved it.
Your app.json seems fine.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论