我刚刚将项目升级到gradle 4.1,现在我收到了这个错误:
Supertypes of the following classes cannot be resolved. Please make
sure you have the required dependencies in the classpath: class com.google.android.gms.maps.model.LatLng, unresolved supertypes:
com.google.android.gms.common.internal.safeparcel.zza class com.google.android.gms.maps.model.PolylineOptions, unresolved supertypes:
com.google.android.gms.common.internal.safeparcel.zza class com.google.android.gms.maps.model.MarkerOptions, unresolved supertypes:
com.google.android.gms.common.internal.safeparcel.zza class com.google.android.gms.maps.model.CameraPosition, unresolved supertypes:
com.google.android.gms.common.internal.safeparcel.zza class com.google.android.gms.location.LocationRequest, unresolved supertypes:
com.google.android.gms.common.internal.safeparcel.zza class
com.google.android.gms.location.LocationSettingsRequest, unresolved
supertypes: com.google.android.gms.common.internal.safeparcel.zza class
com.google.android.gms.location.LocationSettingsResult, unresolved
supertypes: com.google.android.gms.common.internal.safeparcel.zza
我删除了.gradle
缓存以查看是否可以解决错误。没有骰子,我不确定究竟发生了什么。它在升级之前编译而没有问题。有什么想法吗?
答案 0 :(得分:0)
如果你使用不同版本的firebase和google play服务,那么你将面临这个问题。