You should add Androidx plugin to your project but running:
cordova plugin add cordova-plugin-androidx-adapter