0

我正在尝试向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'
}
4

1 回答 1

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 文档将被更新。

于 2016-04-28T15:53:16.157 回答