Java This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true i

ht‮/:spt‬/www.lautturi.com
Java 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.

If you are getting the error "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," it means that your Android project is using AndroidX dependencies, but the android.useAndroidX property is not set to true in the gradle.properties file.

AndroidX is a set of libraries that provide compatibility with the Android platform, and it is recommended to use AndroidX dependencies in new Android projects. The android.useAndroidX property is used to specify whether the project should use AndroidX dependencies or the older Android Support Library dependencies.

To fix the error, you will need to set the android.useAndroidX property to true in the gradle.properties file. This file is typically located in the root directory of your project and is used to store project-specific Gradle properties.

To set the android.useAndroidX property, add the following line to the gradle.properties file:

android.useAndroidX=true

Once you have added this line, save the file and try building your project

Created Time:2017-10-17 20:22:37  Author:lautturi