SupportMapFragment - cannot cast from Fragment to MapFragment

后端 未结 4 1394
深忆病人
深忆病人 2020-12-14 18:26

Trying to put together a little MapFragment in an activity I\'m building, but am having some trouble getting it all to work. I know that the Maps api and Play services are

4条回答
  •  误落风尘
    2020-12-14 19:10

    Change your dependencies to:

    implementation 'com.google.android.gms:play-services-maps:16.1.0'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    

提交回复
热议问题