AndroidStudio 支持androidx

  1. 在项目的 gradle.properties 文件中配置如下:
android.useAndroidX=true
  1. 依赖支持库
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8'
}

猜你喜欢

转载自blog.csdn.net/qq_14876133/article/details/107566693