我是kotlin的三年级学生,我试着在谷歌地图上显示特定机场的纬度和经度。使用异步任务获取机场纬度和经度的数据json,然后在google地图中意向坐标。但是当l尝试意图时,谷歌地图中的代码l在coordinatesText意图下得到了红线。 override fun onMapReady(p0: GoogleMap?))) }
// fu
当使用Android Kotlin创建Android应用程序时,无法显示地图,即使应用程序工作正常,地图也是空白的,其中没有任何内容。,但在AVD上运行后不显示地图。Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set Maps Android API: In
The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr:kotlin-gradle-plugin:$kotlin_version"
// classpath 'com.google.gms:google-services:4.3