Error นี้เกิดจากสาเหตุอะไรครับ ตอนแรก Run ในมือถือได้นะครับ พออัพเดพ SDK ของ google เท่านั้นแหละ ใช้ไม่ได้เลย T T ออ!! ลืมบอกไป โปรแกมที่ผมทำคือ โปรแกรมแสดงแผนที่ google mapv2 อะครับ ช่วยหน่อยนะครับ ขอบคุณครับ ^^ เหมือนมันไม่เจอ Source อะไรซักอย่าง >,<
Code
11-17 22:13:44.437: E/AndroidRuntime(28343): FATAL EXCEPTION: main
11-17 22:13:44.437: E/AndroidRuntime(28343): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.demogps.demogps/com.demogps.demogps.Mapgoogle}: android.view.InflateException: Binary XML file line #6: Error inflating class fragment
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.ActivityThread.access$600(ActivityThread.java:141)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.os.Handler.dispatchMessage(Handler.java:99)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.os.Looper.loop(Looper.java:137)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.ActivityThread.main(ActivityThread.java:5103)
11-17 22:13:44.437: E/AndroidRuntime(28343): at java.lang.reflect.Method.invokeNative(Native Method)
11-17 22:13:44.437: E/AndroidRuntime(28343): at java.lang.reflect.Method.invoke(Method.java:525)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
11-17 22:13:44.437: E/AndroidRuntime(28343): at dalvik.system.NativeStart.main(Native Method)
11-17 22:13:44.437: E/AndroidRuntime(28343): Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class fragment
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.Activity.setContentView(Activity.java:1895)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.demogps.demogps.Mapgoogle.onCreate(Mapgoogle.java:34)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.Activity.performCreate(Activity.java:5133)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
11-17 22:13:44.437: E/AndroidRuntime(28343): ... 11 more
11-17 22:13:44.437: E/AndroidRuntime(28343): 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 <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.common.GooglePlayServicesUtil.n(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.maps.internal.q.v(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.maps.internal.q.u(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.maps.MapsInitializer.initialize(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.maps.SupportMapFragment$b.cE(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.maps.SupportMapFragment$b.a(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.dynamic.a.a(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.dynamic.a.onInflate(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at com.google.android.gms.maps.SupportMapFragment.onInflate(Unknown Source)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:284)
11-17 22:13:44.437: E/AndroidRuntime(28343): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
11-17 22:13:44.437: E/AndroidRuntime(28343): ... 21 more
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.demogps.demogps/com.demogps.demogps.Mapgoogle}: android.view.InflateException: Binary XML file line #6: Error inflating class fragment