0

在将地图视图添加到布局时,我遇到了以下错误。我该如何解决?

在此处输入图像描述

4

2 回答 2

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

于 2021-11-12T13:58:46.740 回答
0

更新SDK后,问题解决。

于 2021-12-08T11:20:28.267 回答