What means that you haven't reference the google-play-services library the right way because this class is part of this library. This error: Caused by: 4.app.Fragment$InstantiationException: Unable to instantiate fragment .maps.SupportMapFragment: make sure class name exists, is public, and has an empty constructor that is public.ĭerived as said in the error from the fact that SupportMapFragment class was not found. The following code is from the full Java activity used in this topic when. ![]() Which means you have not declared your Activity TourMapActivity in the manifest file, and this is the reason for your error. This topic describes how to add a basic map to an Android app after you have. MainActivity.java: public class MainActivity extends Activity have you declared this activity in your AndroidManifest.xml? However The app seems to crash everytime I try to open this MapView via an Intent. I'm working on an Android app that should start a MapView when a tour is selected from a list.
0 Comments
Leave a Reply. |