日常get知识记录【7】Android 错误:This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ 。。。。。
Android studio 使用网上的代码进行编译的时候出现了如下的错误: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.
·
Android studio 使用网上的代码进行编译的时候出现了如下的错误:
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.
The following AndroidX dependencies are detected: androidx.annotation:annotation:1.0.1
解决方法:在gradle.properties内加入
android.useAndroidX=true
更多推荐
已为社区贡献2条内容
所有评论(0)