我看过这个问题的几个帖子,但我无法修复它.
我尝试运行MapView时遇到此错误
12-03 10:26:20.865: E/AndroidRuntime(3317): java.lang.IllegalStateException: The meta- data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within theelement:
我已将此添加到我的清单中
我也尝试过这个
谷歌播放服务lib中的清单:
我不知道为什么它对我不起作用.
我使用HTC Sensation android 4.0.3版本作为我的模拟器.
您应该在活动结束后和关闭应用程序之前将元数据放在清单文件中
< /activity> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="your key from google developers console" /> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> < /application>
并且不要忘记在工作区中导入google-play-services_lib