Gradle
is throwing Program type already present: androidx.transition.R"
after importing androidx.viewpager2:viewpager2:1.0.0-beta02
implementation 'androidx.viewpager2:viewpager2:1.0.0-beta02'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.0.1'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
AGPBI: {"kind":"error","text":"Program type already present: androidx.transition.R","sources":[{}],"tool":"D8"}
Expected outcome: Gradle
should compile with no error
I was facing similar problem, Rebuilding the project resolved it.
Android Studio Menu -> Build -> Rebuild Project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With