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
In Android Applications What Is The Role of "R.Java"
Android Webview Cannot Render Youtube Video Embedded via Iframe
Using Collate in Android Sqlite - Locales Is Ignored in Like Statement
How to Parse JSON Array Without Any Object in Retrofit
Android: How to Implement First Time Tutorial Like Go Launcher in My App
Gstreamer Examples in Android Studio
Kotiln: Pass Data from Adapter to Activity
I'M Getting a Nullpointerexception When I Use Action_Image_Capture to Take a Picture
Android Attaching Multiple Adapters to One Adapter
How to Set The Font Style to Bold, Italic and Underlined in an Android Textview
Send File to Server via Retrofit2 as Object
Error Inflating Class Android.Support.V4.View.Viewpager
How to Paging Query from Firebase Using Android Firebaseui
Android: Velocity-Based Viewpager Scrolling
Trying to Fix Networkonmainthreadexception But Gives Toast Error
Using Katzer Local Notification in Ibm Worklight