Android 高德地图依赖导入报错,如何解决?(语言-kotlin)
报错如下,只要把amap这三行依赖去掉,就不报错,请问引入进来触发了什么导致报错
androidx和support不能混用
implementation ‘com.google.android.material:material:1.0.0’
build.gradle(:project)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}