-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)而不是新的。
请我的评论检查更新 –