Android Studio 4.0 :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.

解决方案:

打开 gradle.properties

输入代码:

android.useAndroidX=true
android.enableJetifier=true

点击 Sync now

原文地址:https://www.cnblogs.com/hbuwyg/p/13084235.html