I have an application which has 11 different activities. One of these activities is an extension of MapActivity (it is a map for data visualization). To get to this activi
For those who are using Android studio and gradle:
In your projects manifest and in your maps-library (if you are using one) module add this line in 'application' section:
< uses-library android:name="com.google.android.maps" />
In your projects build.gradle file (and also in maps library gradle if you are using one) modify compileSdkVersion:
compileSdkVersion "Google Inc.:Google APIs:19"
Clean and rebuild your project.
Apparently at some point my build environment got really messed up. It looked like I somehow had the google APIs jar in my project twice, causing a conflict. I deleted the project and recreated it, works now.
I had the same problem and I realized you cannot just add the map library to the project, you have to change the target to something like this target=Google Inc.:Google APIs:8
instead of android=android-8
.
Anyway thanks you gave me the hint to discover it ;)
try this:
on your Android .jar right click Build Path-> Configure Build Path. then if you see 2 maps.jar includes remove one of them...
in my case it turned out that the maps.jar was also sitting in my libs directory. Removing it from that fixed the issue.
@cyber-monk's (sorry, can't comment on answers yet) answer is similar to every other answer on the internet, except that it shows one very important detail that most leave out. You have to put the tag within the tag. Most just say to put it in the manifest without saying WHERE to put it. I put it inside and finally, FINALLY got it to work