fix This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. code example

Example 1: This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled.

// old version fix
// goto [project folder]/platforms/android
// open gradle.properties
// add or modify this lines
android.useAndroidX=true
android.enableJetifier=true

// new version fix
// if not work
// try this
cordova plugin add cordova-plugin-androidx

Example 2: This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled.

android.useAndroidX=true
android.enableJetifier=true