我有这个gradle
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.estimote:sdk:1.4.0'
compile 'com.android.support:appcompat-v7:27.0.1'
testCompile 'junit:junit:4.12'
compile('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
transitive = true;
}
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.afollestad.material-dialogs:core:0.9.5.0'
compile 'com.google.android.gms:play-services-maps:11.6.0'
compile 'com.google.android.gms:play-services-location:11.6.0'
}
我在使用 appcompat-v7:27.0.1 和 google play 服务时遇到问题。 如果我使用 26.0.1,Google Play 服务没有问题,但无法使用 afollestand 0.9.5.0。 我需要与 appcompat-v7:27 配合使用的 afollestand 0.9.5.0
更新: Gradle image
最佳答案
我也遇到过同样的问题。用户 raghunandan 的建议有帮助。
在 Apps 文件夹中使用 ./gradlew app:dependencies
(或在 Windows 上使用 ./gradlew.bat app:dependencies
),您可以获得所有包。
您可以在其中看到“play-services-maps”需要一些 25.2.0
版本的支持包,但大多数都升级到 27.0.2。但并非全部都是出于某种原因。不过,您可以通过直接包含它们来手动执行此操作! (无论如何,它们将成为您的 APK 的一部分)
compile 'com.android.support:support-v4:27.0.2'
将其与 support-v7 一起添加到您的应用程序 build.gradle 中,它将起作用。
关于android - appcompat-v7 :27. 0.1 播放服务 map 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47295122/