Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
UmairAhmed85 opened this issue Nov 9, 2023 · 8 comments

Comments

@UmairAhmed85
Copy link

UmairAhmed85 commented Nov 9, 2023

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:


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

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

@pedroSG94
Copy link
Owner

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.

@cryinrain69
Copy link

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

@pedroSG94
Copy link
Owner

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

@Caaaaaarl
Copy link

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.

@pedroSG94
Copy link
Owner

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?

@Caaaaaarl
Copy link

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.

@pedroSG94
Copy link
Owner

pedroSG94 commented May 7, 2024

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

@Caaaaaarl
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants