This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry
时间: 2024-02-23 14:10:29 浏览: 201
This error message indicates that your Android project is using AndroidX dependencies but the 'android.useAndroidX' property is not enabled in the gradle.properties file. To fix this error, you should add the following line to your gradle.properties file:
```
android.useAndroidX=true
```
This should enable AndroidX support for your project and resolve the error message.
相关问题
Caused by: com.android.builder.errors.EvalIssueException: This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabl
抱歉,这是一个 Android 开发中遇到的错误,需要在 build.gradle 文件中设置 `android.useAndroidX=true` 才能使用 AndroidX 库。你可以尝试在 build.gradle 中添加以下代码:
```
android {
...
defaultConfig {
...
// Add this line
android.useAndroidX=true
...
}
}
```
希望能帮到你!
阅读全文