Android build problems after installing emailComposer and Admob: androidx problems

After adding emailComposer to my app, I started to see build problems in its file with this line:


I found online that I could change this to

import androidx.core.content.FileProvider;

so I’ve been doing that by hand each time I compile. Inconvenient, but no big deal.

Now, I’ve add Admob to my build and I’m getting more errors. In, there is:


In this forum, I found and does not exist.

The solution says to use

Glory be! This seems perfect!

However, when I do:

ionic build --prod --release && npx cap sync && npx cap open android

I still see all the build errors…

Any thoughts? Help?


   Ionic CLI                     : 6.12.2 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.5.2
   @angular-devkit/build-angular : 0.1000.8
   @angular-devkit/schematics    : 10.0.8
   @angular/cli                  : 10.0.8
   @ionic/angular-toolkit        : 2.3.3


   Capacitor CLI   : 2.4.4
   @capacitor/core : 2.4.4


   Cordova CLI       : 10.0.0
   Cordova Platforms : none
   Cordova Plugins   : no whitelisted plugins (1 plugins total)


   cordova-res                          : not installed
   native-run (update available: 1.3.0) : 1.2.2


   Android SDK Tools : 26.1.1 (/Users/vtn2/Library/Android/sdk)
   NodeJS            : v12.19.0 (/usr/local/bin/node)
   npm               : 6.14.8
   OS                : macOS Catalina
   Xcode             : Xcode 12.3 Build version 12C33