pedroSG94 / RTSP-Server

Plugin of rtmp-rtsp-stream-client-java to stream directly to RTSP player.
Apache License 2.0
214 stars 66 forks source link

Always fail when compile RTSP server #105

Closed swFan closed 9 months ago

swFan commented 11 months ago

Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Failed to transform library-2.3.0.aar (com.github.pedroSG94.RootEncoder:library:2.3.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}. Could not find library-2.3.0.aar (com.github.pedroSG94.RootEncoder:library:2.3.0). Searched in the following locations: https://jitpack.io/com/github/pedroSG94/RootEncoder/library/2.3.0/library-2.3.0.aar

swFan commented 11 months ago

if use 2.3.2 version, AS compile will fail:

Task :app:compileDebugKotlin e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:15:29 Unresolved reference: ConnectCheckerRtsp e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:23:49 Unresolved reference: ConnectCheckerRtsp e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:50:25 Cannot access class 'com.pedro.rtsp.utils.ConnectCheckerRtsp'. Check your module classpath for missing or conflicting dependencies e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:50:70 Type mismatch: inferred type is CameraDemoActivity but ConnectCheckerRtsp was expected e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:54:3 'onNewBitrateRtsp' overrides nothing e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:58:3 'onConnectionSuccessRtsp' overrides nothing e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:64:3 'onConnectionFailedRtsp' overrides nothing e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:73:3 'onConnectionStartedRtsp' overrides nothing e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:76:3 'onDisconnectRtsp' overrides nothing e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:82:3 'onAuthErrorRtsp' overrides nothing e: file:///C:/Users/shrd/Desktop/RTSP-Server-master/app/src/main/java/com/pedro/sample/CameraDemoActivity.kt:91:3 'onAuthSuccessRtsp' overrides nothing

pedroSG94 commented 11 months ago

Hello,

I solved the problem using library version 2.3.0. Try again Library 2.3.2 compile correctly but that version has changes that I need to implement in the project for that reason you have that error.