【发布时间】:2019-04-07 16:11:39
【问题描述】:
我正在与 GeoFire 一起制作地图。在尝试使用以下方式将我的地理位置上传到 Firebase 时:
initGeoFire.setLocation(currentUser, GeoLocation(mMap.cameraPosition.target.latitude, mMap.cameraPosition.target.longitude))
应用程序崩溃并给出错误:
GeoFire.setLocation - No virtual method setValue(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/firebase/tasks/Task; in class Lcom/google/firebase/database/DatabaseReference; or its super classes (declaration of 'com.google.firebase.database.DatabaseReference'
请帮我解决这个问题..
【问题讨论】:
-
你的应用有proguard吗?
标签: android firebase google-maps kotlin