我在我的应用程序中使用UrbanAirship 8.0.2,我想在25.0.0中更新应用程序编译,但是由于urbanAirship使用24.2.1 support-v4库和Google Play服务9.4.0而显示了警告。我还尝试了UrbanAirship最新版本8.3.1,但Google Play服务9.8.0(与25.0.0不兼容)。由于某些新功能,“我的应用”要求是Google play 10.2。当我添加Google play 10.2并支持25.0.0时,build.gradle会显示警告“您的应用程序使用了多个支持v4 lib版本,而不同的Google Play版本可能导致应用程序崩溃”。请建议我什么是解决问题的最佳方法?

最佳答案

定义较新的依赖项以避免不匹配:

// Support libs
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'

// Urban Airship pulls in GCM, so define the newer version
compile 'com.google.android.gms:play-services-gcm:10.2.1'

compile 'com.urbanairship.android:urbanairship-sdk:8.3.2'

关于android - 牛轧糖(25.0.0)编译警告,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43632810/

10-11 22:54
查看更多