This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is not enabled. Set

Posted 彬sir哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is not enabled. Set相关的知识,希望对你有一定的参考价值。

                
                
                
                
                
                
android studio的报错提示:
                
                
                
                
                
:app:checkDebugAarMetadata
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
This project uses AndroidX dependencies, but the ‘android.useAndroidX’ property is not enabled

                
                
                
                
                
报错信息可能是android support包与androidx冲突问题
我使用的是android support包

先看一下Project的External Libraries中有没有androidx库

找到androidx库了&#x

以上是关于This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is not enabled. Set的主要内容,如果未能解决你的问题,请参考以下文章

This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is not enabled

This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is not enabled

This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is not enabled

AndroidStudio中提示:This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is

This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is not enabled. Set

This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is not enabled. Set