Skip to content Skip to sidebar Skip to footer

Unable To Instantiate Android.gms.maps.supportmapfragment

I have a view with a facebook style side bar navigation. On the main view I want to display my map. I have followed Google's tutorial exactly! But I keep running into the error Una

Solution 1:

Judging by you error:

Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.SupportMapFragment: make sure class name exists, is public, and has an empty constructor that is public

and the fact the SupportManFragment class is part of the google-play-services library, you problem is surtenly in the way you reference this library or the library it self.

I would suggest you to re-download it using the SDK-Manager and move it to a location where it path would be shorter and then try to reference it again using the answer you have in this question:

Error java.lang.ClassNotFoundException: com.google.android.gms.maps.MapFragment in Google Map V2

Solution 2:

Right click on project ---> Android Tools ---> Add Support Library. Download it and clear the project and build again. Hope it will work

Post a Comment for "Unable To Instantiate Android.gms.maps.supportmapfragment"