반응형

문제

Package org.webrtc does not exist

/[...]/Conversations/src/main/java/eu/siacs/conversations/services/AppRTCAudioManager.java:26: error: package org.webrtc does not exist import org.webrtc.ThreadUtils; ^ /[...]/Conversations/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java:15: error: package org.webrtc does not exist import org.webrtc.EglBase; ^ /[...]/Conversations/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java:16: error: package org.webrtc does not exist import org.webrtc.IceCandidate; ^ /[...]/Conversations/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java:17: error: package org.webrtc does not exist import org.webrtc.PeerConnection; ^ /[...]/Conversations/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java:18: error: package org.webrtc does not exist import org.webrtc.VideoTrack;

 

관련 문제 : https://github.com/iNPUTmice/Conversations/issues/3678

 

원인

org.webrtc 패키지가 존재하지 않음.

 

해결방법

[Project]/build.gradle 의 파일에 dependencies에 아래의 코드를 추가한다.

dependencies {
	..
	implementation 'org.webrtc:google-webrtc:1.0.+'
    ..
}

 

아래의 사이트에서 참고하였다.

 

https://webrtc.github.io/webrtc-org/native-code/android/

 

Android | WebRTC

Android Show Contents Prebuilt libraries The easiest way to get started is using the official prebuilt libraries available at JCenter. These libraries are compiled from the tip-of-tree and are meant for development purposes only. On Android Studio 3 add to

webrtc.github.io

 

 

반응형