AndroidX compatibility

How to fix AndroidX incompatibilities that have been detected by the Flutter framework.