大家好,我尝试在Android Studio项目中安装osmbonuspack。我使用osmbonuspack Wiki尝试了此操作,但是当我尝试同步项目时,此依赖项出现错误。我认为这是一个兼容性问题。你能给我建议一个解决方案吗?
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "mytestapplication.hello.com.map"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
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 'org.osmdroid:osmdroid-android:6.0.1'
implementation 'com.github.MKergall:osmbonuspack:6.5.2'
}
-此依赖项返回错误:实现'com.android.support:appcompat-v7:28.0.0'
答案 0 :(得分:1)
SDK 28与appcompat-v7不兼容。
您现在可以升级到osmbonuspack 6.5.3,从此依赖关系摆脱掉对appcompat-v7的依赖。 (并升级到osmdroid 6.0.3)