Error:Failed to resolve: android.support:compatibility-v4:23.1.1
Error:Failed to resolve: android.support:compatibility-v4:23.1.1
我正在尝试将 org.mapsforge:mapsforge-map-android-extras:0.6.0
依赖项添加到我的项目中。但是当我这样做时,同步后出现此错误:
Error:Failed to resolve: 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'
}
来自 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 文档。
我正在尝试将 org.mapsforge:mapsforge-map-android-extras:0.6.0
依赖项添加到我的项目中。但是当我这样做时,同步后出现此错误:
Error:Failed to resolve: 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'
}
来自 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 文档。