我正在尝试将谷歌地图添加到我的 Android 应用程序中。我有一个来自谷歌的 API KEY, 并在我的 Android list 中使用它:
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="my API KEY" />
但是我遇到了这个错误:
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Excepted 4030500 but found 0. You must have the following declaration within the element:
<meta-data android:name="com.google.android.gms.version"
android:value:"@integer/google_play_services_version"/>
请帮助我。
最佳答案
这发生在 google 更新 google play 服务时。只需按照错误日志中的说明进行操作即可。将该行添加到您的 list
关于android - 如何使用谷歌地图的 API KEY,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19932928/