小编Ray*_*Lee的帖子

API key not found

I'm trying out React Native Maps but get this when I do react-native run-android:

API key not found.  Check that <meta-data android:name="com.google.android.geo.API_KEY" android:value="your API key"/> is in the <application> element of AndroidManifest.xml
Run Code Online (Sandbox Code Playgroud)

My meta-data tag from AndroidManifest.xml:

<meta-data
android:name="com.google.android.geo.maptest"
android:value="A***Q"
/>
Run Code Online (Sandbox Code Playgroud)

I have tried restarting the packager.

Solution: android:name="com.google.android.geo.API_KEY" is literal and shouldn't be changed.

api-key react-native

4
推荐指数
1
解决办法
2692
查看次数

不接受Android SDK Platform 23软件包的许可证

试图react-native run-android但得到这个:

您尚未接受以下SDK组件的许可协议:[Android SDK Platform 23,Android SDK Build-Tools 23.0.1]。

已接受的所有许可sdkmanager --licenses。我该如何解决?


解决方案:删除/Users/WHATEVER-YOUR-NAME-IS/Library/Android,然后通过Android Studio的SDK Manager重新安装所有SDK。

sdk android

2
推荐指数
1
解决办法
3586
查看次数

标签 统计

android ×1

api-key ×1

react-native ×1

sdk ×1