【问题标题】:How to set up correctly the OSMbonuspack in my project?如何在我的项目中正确设置 OSMbonuspack?
【发布时间】:2018-12-20 09:01:30
【问题描述】:

大家好,我尝试在 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'

}

-这个依赖返回错误:implementation 'com.android.support:appcompat-v7:28.0.0'

【问题讨论】:

    标签: android android-studio osmdroid osmbonuspack


    【解决方案1】:

    SDK 28 与 appcompat-v7 不兼容。

    您现在可以升级到 osmbonuspack 6.5.3,它摆脱了对 appcompat-v7 的依赖。 (也升级到osmdroid 6.0.3)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-22
      • 1970-01-01
      • 1970-01-01
      • 2012-02-08
      • 2011-05-09
      • 2018-12-23
      • 2018-03-21
      • 1970-01-01
      相关资源
      最近更新 更多