com.google.android.maps does not exist strange error

后端 未结 2 466
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 15:27

I can\'t build my android project, it says that com.google.android.maps does not exist. It is way strange because in my project in libraries I have them. I rebuild the build

2条回答
  •  太阳男子
    2021-01-03 16:28

    Make sure you

    • install the Google APIs in your Android SDK (this means the "Google APIs" choice instead of the "Android X.x" one)

    • specify to use this library in your manifest XML:

      
      
    • choose "Google API" as your "Build Target", not the "Android X.x" one.

    FYI, when testing with the emulator AVD, you need to launch the "Google APIs" version instead of the "Android X.x" one.

提交回复
热议问题