Android Build Errors: Unsupported Modules Detected and AndroidX dependencies

Ok, looks like I can get rid of the “Unsupported Modules” error by closing Android Studio and deleting the .idea directory.