Android Google Maps Failed to find style ‘mapViewStyle’ in current theme

I had the same problem when I try to build a simple app, following the Android MapView tutorial.

The app showed this exception in AVD for the file file main.xml:

Failed to find style ‘mapViewStyle’ in current theme

At last I found that there is a mistake in file AndroidManifest.xml:

The element <uses-library android:name="com.google.android.maps" />
should be a child of the <application> element, not immediately within <manifest>.

Hope this was any help to you.

Leave a Comment