MapActivity could not be found. Android Studio 0.5.1

后端 未结 1 914
傲寒
傲寒 2020-12-11 09:45

I am setting up google map v2 in Android. I am using the new technique on adding dependency using this link.\"Android Studio with Google Play Services\"

It did nice

相关标签:
1条回答
  • 2020-12-11 10:03

    MapActivity was part of the Google Maps Android v1 API which is now deprecated.

    Using the Google Play Services library you will use the Google Maps Android API v2 and then MapActivity is not available anymore. You need to use the MapFragment.

    You can see an introduction on how to use the MapFragment in the official documentation.

    0 讨论(0)
提交回复
热议问题