Search This Blog

Sunday, November 15, 2020

This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled CORDOVA [SOLVED]

If you are getting these kind of errors like

Task :app:mergeDebugResources FAILED
What went wrong: Execution failed for task ':app:mergeDebugResources'.

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:

Try this

Update to cordova-android@9 which implicitly supports AndroidX:

cordova platform rm android && cordova platform add android@8

Add cordova-plugin-androidx to your Cordova project, which persistently sets the native AndroidX flags for cordova-android@8:

cordova plugin add cordova-plugin-androidx

cordova plugin add cordova-plugin-androidx-adapter

No comments:

Post a Comment

content-wide advt