Google API for android crashed and I doing any thing right -


i'm trying develop app google maps api.

i'm followed this tutorial step step , app crashed!

i tried many tutorials, this one, same error:

05-18 00:53:16.466: e/androidruntime(17073): fatal exception: main 05-18 00:53:16.466: e/androidruntime(17073): java.lang.runtimeexception: unable start activity componentinfo{com.example.googlemaps/com.example.googlemaps.mainactivity}: android.view.inflateexception: binary xml file line #6: error inflating class fragment 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2295) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activitythread.handlelaunchactivity(activitythread.java:2349) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activitythread.access$700(activitythread.java:159) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activitythread$h.handlemessage(activitythread.java:1316) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.os.handler.dispatchmessage(handler.java:99) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.os.looper.loop(looper.java:137) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activitythread.main(activitythread.java:5419) 05-18 00:53:16.466: e/androidruntime(17073):    @ java.lang.reflect.method.invokenative(native method) 05-18 00:53:16.466: e/androidruntime(17073):    @ java.lang.reflect.method.invoke(method.java:525) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1187) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1003) 05-18 00:53:16.466: e/androidruntime(17073):    @ dalvik.system.nativestart.main(native method) 05-18 00:53:16.466: e/androidruntime(17073): caused by: android.view.inflateexception: binary xml file line #6: error inflating class fragment 05-18 00:53:16.466: e/androidruntime(17073):    @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:719) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.view.layoutinflater.rinflate(layoutinflater.java:761) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.view.layoutinflater.inflate(layoutinflater.java:498) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.view.layoutinflater.inflate(layoutinflater.java:398) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.view.layoutinflater.inflate(layoutinflater.java:354) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.android.internal.policy.impl.phonewindow.setcontentview(phonewindow.java:361) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activity.setcontentview(activity.java:1956) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.example.googlemaps.mainactivity.oncreate(mainactivity.java:20) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activity.performcreate(activity.java:5372) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1104) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2257) 05-18 00:53:16.466: e/androidruntime(17073):    ... 11 more 05-18 00:53:16.466: e/androidruntime(17073): caused by: java.lang.illegalstateexception: meta-data tag in app's androidmanifest.xml not have right value.  expected 4132500 found 0.  must have following declaration within <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.common.googleplayservicesutil.n(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.common.googleplayservicesutil.isgoogleplayservicesavailable(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.maps.internal.q.v(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.maps.internal.q.u(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.maps.mapsinitializer.initialize(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.maps.mapfragment$b.eb(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.maps.mapfragment$b.a(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.dynamic.a.a(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.dynamic.a.oninflate(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ com.google.android.gms.maps.mapfragment.oninflate(unknown source) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.app.activity.oncreateview(activity.java:4965) 05-18 00:53:16.466: e/androidruntime(17073):    @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:695) 05-18 00:53:16.466: e/androidruntime(17073):    ... 21 more 

can help?

replace @integer/google_play_services_version 4132500

see this

google-play-services_lib --> res --> values --> version.xml

for correct version of google play services


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -