【发布时间】:2019-05-14 03:14:24
【问题描述】:
我的应用程序使用 API 19,我在其中一个布局中放置了一个 MapView,并添加了谷歌地图实现。现在我收到来自 gradle 的警告,说我正在混合版本。
这里是警告:
所有 com.android.support 库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本 28.0.0-rc02、26.1.0。示例包括 com.android.support:animated-vector-drawable:28.0.0-rc02 和 com.android.support:support-media-compat:26.1.0 更多... (Ctrl+F1)
这是我的 gradle 依赖项:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
警告显示'com.android.support:appcompat-v7:28.0.0-rc02'。
我不确定在哪里可以找到用于play-services-maps 的正确版本或如何正确解决此问题。我不想从 19 降级我的最低版本。
【问题讨论】: