You need to update the Android studio version to more than 3.2 it's still a beta version.
The problem is Google Maps library is using Fragment class from the support library so it's conflicted with androidX, so Android Studio 3.2 version make refactor all dependencies to use androidX classes.