大家好,我尝试在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'
SDK 28与AppCompat-V7不兼容。
您现在可以升级到osmbonuspack 6.5.3,从该依赖项到appcompat-v7。(还升级到osmdroid 6.0.3)