RootEncoder icon indicating copy to clipboard operation
RootEncoder copied to clipboard

Failed to resolve: com.github.pedroSG94.rtmp-rtsp-stream-client-java:encoder:2.2.6

Open UmairAhmed85 opened this issue 2 years ago • 3 comments

Added this implementation 'com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6' in app level gradle file. No matter which version i use, whether it be 2.1.9 or 2.2.6, i am always getting this below error. What could be the cause and how can I fix it.

Could not determine the dependencies of task ':app:compileDebugKotlin'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.github.pedroSG94.rtmp-rtsp-stream-client-java:encoder:2.2.6. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/pedroSG94/rtmp-rtsp-stream-client-java/encoder/2.2.6/encoder-2.2.6.pom - https://jcenter.bintray.com/com/github/pedroSG94/rtmp-rtsp-stream-client-java/encoder/2.2.6/encoder-2.2.6.pom - https://repo.maven.apache.org/maven2/com/github/pedroSG94/rtmp-rtsp-stream-client-java/encoder/2.2.6/encoder-2.2.6.pom - https://jitpack.io/com/github/pedroSG94/rtmp-rtsp-stream-client-java/encoder/2.2.6/encoder-2.2.6.pom Required by: project :app project :app > com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.2.6

Possible solution:

  • Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Included this block as well inside app level build.gradle file

allprojects { repositories { maven { url 'https://jitpack.io' } } }

UmairAhmed85 avatar Nov 09 '23 06:11 UmairAhmed85

Hello,

Try again with this gradle:

implementation 'com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6'

I think that jitpack failed to compile olders versions after change repository name and I need request jitpack to compile it again. I tested that version and it is working for me now.

pedroSG94 avatar Nov 09 '23 09:11 pedroSG94

Hello,

Try again with this gradle:

implementation 'com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6'

I think that jitpack failed to compile olders versions after change repository name and I need request jitpack to compile it again. I tested that version and it is working for me now.

I had the same problem as @UmairAhmed85 . I tried both implementation 'com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6' and implementation 'com.github.pedroSG94.RootEncoder:library:2.3.2' it gives me an error not found.

Log sync gradle:

rtmp-build-error

cryinrain69 avatar Dec 11 '23 03:12 cryinrain69

Hello,

Your error seems different.

Check that you added jitpack repository correctly. Also, try to compile common module using version 2.3.2 instead of library module to discard problems with dependencies

pedroSG94 avatar Dec 11 '23 08:12 pedroSG94

I have same question.Try to modify your gradle version in your project.My gradle version is 8.0.0;gradle plug version is 8.1.1 and JDK version 17.

Caaaaaarl avatar May 06 '24 01:05 Caaaaaarl

Hello,

Which library version are you using? Did you try to compile the library in a new project using the last library version and last Android Studio?

pedroSG94 avatar May 07 '24 07:05 pedroSG94

Hello,thanks for your response,

I using library version is "2.4.4",and Android Studio version is "Android Studio Giraffe | 2022.3.1 Patch 1". Also compile the library in a new project and it is worked.

Caaaaaarl avatar May 07 '24 09:05 Caaaaaarl

Also compile the library in a new project and it is worked

Then it is related with the project configuration. If you can share me a project with the same configuration I can try to check it but I think it is not totally related with the library compilation. This could be a conflict with your current project.

If possible share me a project and I will try find the reason. You don't need share the project code only create a new project and copy build files to reproduce the case. You can send it by email if you want

pedroSG94 avatar May 07 '24 09:05 pedroSG94

Hello,

You're right, the issue seems to stem from conflicts with other dependencies in my project.

However, when I tried to replicate all dependencies into a new project, it failed to compile due to the complexity and multitude of dependencies. I didn't proceed to identify which dependency caused the issue.

Anyway, I can successfully use your library after modifying the Gradle version.

Thank you very much for your prompt response and assistance; your library works perfectly!

Caaaaaarl avatar May 08 '24 02:05 Caaaaaarl