世博APK中缺少Expo manifest.android.config

时间:2020-06-12 08:30:58

标签: android react-native expo vue-native

TypeError undefined不是对象(正在评估“ f.default.manifest.android.config.googleMaps”)

https://sentry.io/错误告诉我,apk清单中的密钥配置丢失。

有什么想法要解决吗?

APK

enter image description here

DEV

enter image description here

1 个答案:

答案 0 :(得分:0)

https://github.com/expo/expo/issues/8781

我通过在所有项目中将 Constants.manifest.android.config.googleMaps.apiKey 调用替换为我自己的小型config json(或只是字符串)来解决此问题。在独立apk Constants.manifest.android.config.googleMaps.apiKey 上-不存在。 react-native-map工作正常