We have a React Native app where after upgrading to Android Studio 3.6.1 and Gradle plugin 3.6.1 we are seeing this compilation error:
Type androidx.appcompa
My errors were similar, with a "is defined multiple times" message.
I solved it by downgrading the Gradle plugin to 3.5.0, running the app — or at least trying to — then upgrading to Gradle plugin 3.6.2 again.
I am not sure why, but this seemed to have cleared some caches or dependencies I was not aware of.
Removing ~/.gradle
or android/.gradle
did not help.