Cannot resolve MapActivity class on Android

The problem is that your MapVis class is likely extending com.google.android.maps.MapActivity. For the system to be able to find this class you need to do two things:

First make sure your project is including the Android maps.jar in your build path. From Eclipse find

Project > Properties > Android

Then select one of the “Google APIs” as appropriate for you app. You can confirm that maps.jar is on your build path by checking:

Project > Properties > Java Build Path > Libraries > Expand "Google Apis"

Second browse to your manifest file and make sure you have the uses-library snippet nested within the <application> tags as follows:

<manifest>
...
   <application ...>
      <uses-library android:name="com.google.android.maps" />
      ...
   </application>
</manifest>

May the force be with you!

Leave a Comment