Error Inflating Class Com.Google.Android.Maps.Mapview

Error inflating class com.google.android.gms.maps.MapView

Possible problems:

  • You might need to encapsulate your fragment.

  • Your API level should be over 8

  • You should add the library from the Project->Properties->Android

  • If you're running the Map Demo in the same workspace, I'd recommend to remove it.

  • This problem seem not to related to device but try test on device not emulator

Error Inflating class com.google.android.maps.MapView though map library is mentioned and google API is used

You are attempting to use the original version of Google Maps support for Android (com.google.android.maps). We refer to that now as Maps V1.

This will not work, as Maps V1 has been deprecated for over two years. You can no longer get API keys for it, so even if your code would be correct, it would not work. The crash is because the old MapView had to be used inside of a MapActivity, as the error indicates.

The current version of Google Maps support for Android — Maps V2 — has a very different API and does not involve classes in the com.google.android.maps package.

eclipse gives me an error inflating class com.google.android.maps.MapView but i don't use it in project

Check inside any of your xml file is containing the MapView or not. Especially the view that you are setting for the launching activity. Also make sure that in the run configuration you are not selecting the wrong project.

Error inflating class fragment using Google Maps

As your logcat says :

Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 6587000 but found 10084000.  

Change google_play_services_version to 6587000.



Related Topics



Leave a reply



Submit