Error Inflating class com.google.android.maps.MapView -
i following simple map tutorial http://developer.android.com/resources/tutorials/views/hello-mapview.html getting error . new android tried follow solution provided on internet no success yet. please me. main .xml below
<?xml version="1.0" encoding="utf-8"?> <com.google.android.maps.mapview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mapview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true" android:apikey="***" />
and manifestfile
i had problem , solved following 2 steps:
1) put following line in application (important) element of androidmanifest.xml file.
<uses-library android:name="com.google.android.maps" />
2) extend mapactivity instead of activity.
enjoy!
Comments
Post a Comment