SupportMapFragment does not support AndroidX Fragment

后端 未结 10 1589
傲寒
傲寒 2020-11-30 11:04
import com.google.android.gms.maps.SupportMapFragment;
import androidx.fragment.Fragment;
...
private SupportMapFragment mMapFragment;
...
mMapFragment = (SupportMap         


        
10条回答
  •  时光取名叫无心
    2020-11-30 11:33

    I solved this by implementing the latest version of play-services-maps in my app's build.gradle file:

    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    

提交回复
热议问题