-1
我構建了一個包含一些其他項目的項目。在第一個項目中,我有下一個依賴項:如何排除Gradle中的.jar依賴項
compile files('libs/google-play-services.jar')
這是舊版本的Google服務API。在其他項目中,我使用其他谷歌最新的API
compile 'com.google.android.gms:play-services-ads:8.3.0'
compile 'com.google.android.gms:play-services-identity:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile 'com.google.android.gms:play-services-maps:8.3.0'
compile 'com.google.android.gms:play-services-location:8.3.0'
其結果是,如果我嘗試編譯此項目爲一體,我得到錯誤有關圖書館的衝突。請告訴我,我該如何解決這個問題?
的問題是,我得到未來衝突時,啓動內置的應用程序:
error: cannot find symbol method getMapAsync(<anonymous OnMapReadyCallback>)
看來,當編譯完成和應用程序啓動,不知什麼原因,試圖拿舊的API(其中API應該是8.3版本.0)而不是新的。
請我的評論檢查更新 –