skip to Main Content

while adding the mapview to the layout, I am encountering the following error. How can I solve it?

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    After updating the SDK, the problem was solved.


  2. You should add the Google Maps Play Services dependency in the app/build.gradle file:

    implementation 'com.google.android.gms:play-services-maps:18.0.0'

    Remember also to configure you project to add a map into your app: https://developers.google.com/maps/documentation/android-sdk/config

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search