I tried adding Installreferrer to my app after adding it to gradle, when rebuilding the app. I'm getting this error.
Duplicate class com.google.android.a.a found in modules jetified-installreferrer-2.2-runtime (com.android.installreferrer:installreferrer:2.2) and jetified-payu-gpay-1.3.2-runtime (com.payu.gpay:payu-gpay:1.3.2)
Duplicate class com.google.android.a.b found in modules jetified-installreferrer-2.2-runtime (com.android.installreferrer:installreferrer:2.2) and jetified-payu-gpay-1.3.2-runtime (com.payu.gpay:payu-gpay:1.3.2)
Duplicate class com.google.android.a.c found in modules jetified-installreferrer-2.2-runtime (com.android.installreferrer:installreferrer:2.2) and jetified-payu-gpay-1.3.2-runtime (com.payu.gpay:payu-gpay:1.3.2)
Downgrading the version number of library to 2.1 as mentioned in comment didn't help as I was getting the issue for FirebasePerformancePlugin too. So I believe other libraries too can have conflict.
Here is what I did.
You can see there is a file a.a.a which is an empty interface which was clashing with the library.
Search for a.a.a
It is an interface which seems identical as in the first image represented by a.a.a
I don't know if it is a proper solution. Do rectify if there is any proper/ better solution.