Hello.
I have found a solution…only you have to install a plugin to enable androidx dependencies in your IONIC project…
add plugin to enable AndroidX in the project
cordova plugin add cordova-plugin-androidx
add plugin to patch existing plugin source that uses the Android Support Library to use AndroidX
cordova plugin add cordova-plugin-androidx-adapter
Source: Migrating Ionic app to AndroidX