类型不匹配:LatLang Android Studio,Kotlin开发

ekqde3dh  于 6个月前  发布在  Android
关注(0)|答案(1)|浏览(56)

所以我有这个类LocationService,在这里我定义了所有与位置相关的函数,但是我遇到了无法通过的错误。错误如下:

Type mismatch: inferred type is com.google.android.gms.maps.model.LatLng but com.google.maps.model.LatLng! was expected on line 96

Type mismatch: inferred type is com.google.android.gms.maps.model.LatLng but com.google.maps.model.LatLng! was expected on line 98

Unresolved reference: bounds on line 99

个字符
我得到了这个代码降落在我的手为我修复它,但我真的不能弄清楚,有人能帮助我吗?

ubby3x7f

ubby3x7f1#

我认为你从错误的package导入。

import com.google.android.gms.maps.model.LatLng

字符串

import com.google.maps.model.LatLng

相关问题