我尝试使用此代码,它正在与最新的地图渲染器一起使用。
此问题已在谷歌地图最新版本 18 或更高版本中解决
implementation 'com.google.android.gms:play-services-maps:18.1.0'
try {
MapsInitializer.initialize(getApplicationContext(), MapsInitializer.Renderer.LATEST, this);
} catch (Exception e) {
Log.e(TAG, "onCreate: " + e.getMessage(), e);
}