Can't create a MapView Object -> VerifyError

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Can't create a MapView Object -> VerifyError

Postby dwischer » Mon Oct 05, 2009 10:33 am


what i'm trying to do is to show a simple map on the first activity.
So i tried to build a mapview object:
public class Test3 extends Activity {

private MapView mv = null;

/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {
//setContentView(R.layout.main); = new MapView(null, "myKey");



But in this line: = new MapView(null, "myKey"); i get a
VerifyError and i cant figure out why.
Maybe someone here has an idea how to get a map on the screen. (The
HelloMapView tutorial isnt working either)

Once Poster
Once Poster
Posts: 1
Joined: Mon Oct 05, 2009 10:31 am


Postby azraeal » Wed Oct 07, 2009 10:27 pm

You need to export your project as a signed apk. By pressing the green "play" button to run, it will run/install your app with either the debug key, or no key. So, sign your app with the certificate you used to generate your API key, then install from that apk.
Experienced Developer
Experienced Developer
Posts: 71
Joined: Fri Sep 04, 2009 6:34 pm
Location: California


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 8 guests