我试图将org.mapsforge:mapsforge-map-android-extras:0.6.0
依赖项添加到我的项目中。但是当我这样做时,我在同步后收到此错误:
错误:无法解决:android.support :compatibility-v4:23.1.1
这是我的 .gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.my.myapplication"
minSdkVersion 4
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-v4:23.1.1'
compile 'org.mapsforge:mapsforge-map-android:0.6.0'
compile 'com.caverock:androidsvg:1.2.2-beta-1'
compile 'org.mapsforge:mapsforge-map-android-extras:0.6.0'
//compile 'com.android.support:appcompat-v7:23.3.0'
}
答案 0 :(得分:1)
来自mapsforge-dev google群组的解决方案:
替换
compile 'org.mapsforge:mapsforge-map-android-extras:0.6.0'
到
compile('org.mapsforge:mapsforge-map-android-extras:0.6.0') {
transitive = false
}
mapsforge文档将会更新。