AgoraIO-Community/VideoUIKit-Android

Duplicate class found error occured on building v4.0.0

Closed this issue · 1 comments

Describe the bug
On integrating the Agora VideoUIKit-Android gives duplicate class error on compiling

To Reproduce
Steps to reproduce the behavior:

  1. Go to build.gradle and add implementation "com.github.AgoraIO-Community:Android-UIKit:v4.0.0"
  2. Click on make project
  3. Scroll down to build console
  4. See error Duplicate class io.agora.agorauikit_android.AgoraButton found in modules final-debug-v4.0.0-runtime (com.github.AgoraIO-Community.Android-UIKit:final-debug:v4.0.0) and final-v4.0.0-runtime (com.github.AgoraIO-Community.Android-UIKit:final:v4.0.0)

Expected behavior
Project should be build

Screenshots
Smartphone (please complete the following information):

  • image
  • target SDK - 33

@gopalawasthi123 can you try using this as a dependency for the latest 4.0.0 version
implementation 'com.github.AgoraIO-Community.VideoUIKit-Android:final:v4.0.0'