while adding the mapview to the layout, I am encountering the following error. How can I solve it?
2
After updating the SDK, the problem was solved.
You should add the Google Maps Play Services dependency in the app/build.gradle file:
app/build.gradle
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
Click here to cancel reply.
2
Answers
After updating the SDK, the problem was solved.
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