Android + Google Api V2
i am creating a application with using the google map v2 on a real device but i get a problem and the application force close how to fix this after i read many and many solutions
Solution 1:
Your error here is:
Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.MapFragment: make sure class name exists, ispublic, and has an empty constructor that ispublic
which means that basically MapFragment
class could not be found. MapFragment
is part of the google-play-services
library. To use it you need to import the google-play-services
into your workspace
and then reference it from your project, you can reed how it's done in the first 3 steps
of this blog post I wrote:
Post a Comment for "Android + Google Api V2"