AgoraIO-Community / VideoUIKit-Android

An Android package to simply integrate Agora Video Calling or Live Video Streaming to your app with just a few lines of code.
https://agoraio-community.github.io/VideoUIKit-Android/
MIT License
25 stars 15 forks source link

[BUG] conflict between agora ui kit android and agora rtm #31

Open saifjadoonEzShifa opened 1 year ago

saifjadoonEzShifa commented 1 year ago

Describe the bug whenever i import agora ui kit for android it shows error of duplicate classes, im using agora rtm in my project, connflict is between agora ui kit and agora rtm.... please i have to use both in same project , im stuck it in for 1 month, help please

maxxfrazer commented 1 year ago

Hi, I see that the Issue template was not used, could you do the following:

Let us know how you are installing ui kit (URL and version) Post an image or copy text of the error Is this causing an issue that's making you stuck beyond logs?

Any other screenshots or information would be helpful.

saifjadoonEzShifa commented 1 year ago

issue resolved

rehmanjameel commented 1 year ago

FAILURE: Build failed with an exception.

Go to the documentation to learn how to Fix dependency resolution errors. at com.android.build.gradle.internal.tasks.CheckDuplicateClassesDelegate.run(CheckDuplicateClassesDelegate.kt:65) at com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable.execute(CheckDuplicateClassesDelegate.kt:91) at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62) at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73) at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59) at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:205) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:187) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.access$700(DefaultConditionalExecutionQueue.java:120) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner$1.run(DefaultConditionalExecutionQueue.java:162) at org.gradle.internal.Factories$1.create(Factories.java:31) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:270) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:119) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:124) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:157) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:126) ... 2 more

BUILD FAILED in 324ms

rehmanjameel commented 1 year ago

issue resolved

How?

M-Miyazako commented 1 year ago

@rehmanjameel Changing the dependencies seems to make the build work.

- implementation 'com.github.AgoraIO-Community:VideoUIKit-Android:4.0.1'

+ implementation 'com.github.AgoraIO-Community.VideoUIKit-Android:final:4.0.1'
or
+ implementation 'com.github.AgoraIO-Community.Android-UIKit:final:v4.0.1'

I do not know why they are letting this problem go unaddressed.

M-Miyazako commented 1 year ago

I thought VideoUIKit-Android and Android-UIKit were the same thing, but it seems they have different contents. VideoUIKit-Android was able to project video, but Android-UIKit did not work.

maxxfrazer commented 1 year ago

Android-UIKit is the old project name. All platform’s UIKits were renamed on GitHub, but jitpack relies on the repo names. VideoUIKit-Android is the right one.

M-Miyazako commented 1 year ago

It was a sad experience, as we could have expected that the project name had been changed, but not that the contents would be different even though they were the same version :cry:

nillbiplob commented 1 year ago

I also faced the same problem and after adding the following line, I was able to compile the code.

api 'com.github.AgoraIO-Community.VideoUIKit-Android:final:4.0.1'
Razia-Whizcamp commented 18 hours ago

I am also facing same issues