这些是我的依赖项:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:27.1.1'
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:7.1.2')
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-
v7:0.5.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'org.apache.commons:commons-lang3:3.6'
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'
}
我收到以下警告:所有com.android.support库都必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本28.0.0,27.1.1。示例包括com.android.support:animated-veenter code here
ctor-drawable:28.0.0和com.android.support:design:27.1.1以下...(Ctrl + F1)
检查信息:库,工具和库的某些组合不兼容或可能导致错误。一种不兼容的情况是使用不是最新版本的Android支持库版本进行编译(或者特别是低于目标targetSdkVersion的版本)。
根据文档,我可以使用以下行进行修复
implementation ('com.mapbox.mapboxsdk:mapbox-android-sdk:7.1.2'){
exclude group: 'group_name', module: 'module_name'}
但我不知道group_name和module_name应该是什么?链接到文档在这里enter link description here
请帮助?
这是我在运行时遇到的错误:
Android资源链接失败 C:\ Users \ tmast \ AndroidStudioProjects \ GUIPlay \ app \ build \ intermediates \ incremental \ mergeDebugResources \ merged.dir \ values-v28 \ values-v28.xml:7:错误:未找到资源android:attr / dialogCornerRadius。 C:\ Users \ tmast \ AndroidStudioProjects \ GUIPlay \ app \ build \ intermediates \ incremental \ mergeDebugResources \ merged.dir \ values-v28 \ values-v28.xml:11:错误:未找到资源android:attr / dialogCornerRadius。 C:\ Users \ tmast \ AndroidStudioProjects \ GUIPlay \ app \ build \ intermediates \ incremental \ mergeDebugResources \ merged.dir \ values \ values.xml:3125:错误:未找到资源android:attr / fontVariationSettings。 C:\ Users \ tmast \ AndroidStudioProjects \ GUIPlay \ app \ build \ intermediates \ incremental \ mergeDebugResources \ merged.dir \ values \ values.xml:3126:错误:未找到资源android:attr / ttcIndex。 错误:链接引用失败。