Error when trying to import the library
I am using a SDK and I am trying to use this library with it. However, it gives the following error as output:
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\MyUser\.gradle\caches\transforms-1\files-1.1\rtmp-2.1.4.aar\574ab04870bc05005f324256fa72102c\jars\classes.jar
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
The import attempt was done by adding to build.gradle(Module:MyApp) the following line to dependencies:
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.1.4'
and in build.gradle(Project:MyProject), I added the following line to repositories:
maven { url 'https://jitpack.io' }
Hello, It is working for me and others users, so it is a gradle configuration error for sure.
If you created recently the project, this code:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Was moved to settings.gradle file. Check that file and add maven repository to it.