2016-12-23 63 views
0

我隨機得到這個錯誤(我沒有改變線/線和做這個工作之前):谷歌Play服務的錯誤?

error: cannot access AbstractSafeParcelable 
class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found 

在這一行:

locationRequest.setInterval(LOCATION_REQUEST_INTERVAL); 

(我使用谷歌FusedLocationProviderAPI這裏)

爲什麼我得到這個錯誤,這是什麼意思?

回答

2

我設法解決這個問題。如果有人會有相同的錯誤,請試試這個。

我在我的build.gradle(app)文件有衝突。我有兩個:

compile 'com.google.android.gms:play-services-location:9.4.0' 
compile 'com.google.android.gms:play-services-maps:10.0.1' 

這就造成了衝突,因爲有兩個不同的版本。我剛剛更新...services-location:9.4.0...services-location:10.0.1和問題就解決了。

相關問題