0

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

enter image description here

erenjeager
  • 49
  • 1
  • 7

2 Answers2

0

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

dginelli
  • 409
  • 6
  • 14
0

After updating the SDK, the problem was solved.

Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73
erenjeager
  • 49
  • 1
  • 7