我想实现简单的谷歌谷歌MapV2误差图谱例如我搜索有关,但没有明确的解决方案 清单:有关meta标签
package="com.syntel.mapexample"
android:versionCode="1"
android:versionName="1.0" >
android:minSdkVersion="8"
android:targetSdkVersion="17" />
android:name="com.syntel.mapexample.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
android:glEsVersion="0x00020000"
android:required="true" />
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:name="com.syntel.mapexample.MainActivity"
android:label="@string/app_name" >
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyBllmHwXofzx3N6YpCKmkMXh7rfc4lSL_Q" />
XML:
android:id="@+id/map"
android:name="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
我我试图实现简单的地图示例查看地图,但得到错误
Logcat详细信息:
02-20 10:53:15.706: E/AndroidRuntime(23385): java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.syntel.mapexample/com.syntel.mapexample.MainActivity}: android.view.InflateException: Binary
XML file line #6: Error inflating class fragment
02-20 10:53:15.706: E/AndroidRuntime(23385): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
02-20 10:53:15.706: E/AndroidRuntime(23385): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
02-20 10:53:15.706: E/AndroidRuntime(23385): at
android.app.ActivityThread.access$600(ActivityThread.java:141)
02-20 10:53:15.706: E/AndroidRuntime(23385): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
02-20 10:53:15.706: E/AndroidRuntime(23385): at android.os.Handler.dispatchMessage(Handler.java:99)
02-20 10:53:15.706: E/AndroidRuntime(23385): at android.os.Looper.loop(Looper.java:137)
02-20 10:53:15.706: E/AndroidRuntime(23385): at
android.app.ActivityThread.main(ActivityThread.java:5041)
02-20 10:53:15.706: E/AndroidRuntime(23385): at java.lang.reflect.Method.invokeNative(Native Method)
02-20 10:53:15.706: E/AndroidRuntime(23385): at java.lang.reflect.Method.invoke(Method.java:511)
02-20 10:53:15.706: E/AndroidRuntime(23385): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
02-20 10:53:15.706: E/AndroidRuntime(23385): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
02-20 10:53:15.706: E/AndroidRuntime(23385): at dalvik.system.NativeStart.main(Native Method)
02-20 10:53:15.706: E/AndroidRuntime(23385): Caused by: android.view.InflateException: Binary XML file
line #6: Error inflating class fragment
02-20 10:53:15.706: E/AndroidRuntime(23385): Caused by: 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 the element:
android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
+0
还添加该元数据在menifest: –