Android Build Errors: Unsupported Modules Detected and AndroidX dependencies

I’m getting this error when building in Android Studio:

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

I followed the instructions to add the following to

android.enableJetifier=true // installed as suggested in another post

This leads to a different error:

Unsupported Modules Detected
Compilation is not supported for following modules: 
Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.

Can anyone share some insight about what’s happening here?


cordova-plugin-google-analytics (1.9.0)
cordova-sqlite-storage (5.0.0)
es6-promise-plugin (4.2.2)

Ionic Info


   Ionic CLI                     : 6.9.1 (/Users/me/.nvm/versions/node/v13.12.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.0.7

   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.3.26
   @angular/cli                  : 8.3.26
   @ionic/angular-toolkit        : 2.2.0


   Capacitor CLI   : 2.1.0
   @capacitor/core : 2.1.0


   cordova-res : 0.14.0
   native-run  : 1.0.0


   NodeJS : v13.12.0 (/Users/me/.nvm/versions/node/v13.12.0/bin/node)
   npm    : 6.14.5
   OS     : macOS Catalina

Ok, looks like I can get rid of the “Unsupported Modules” error by closing Android Studio and deleting the .idea directory.

I’m having this error but deleting the .idea folder seems to make no difference.

There’s an issue here that was closed by @maxlynch1 but I am wondering if it should be re-opened.