renyuzhuo / WebRTC-Android-Learn

AppRTCMobile——WebRTC Android
https://renyuzhuo.cn/#/issues/4
76 stars 23 forks source link

Build Android Studio Error #1

Closed HuuNguyen312 closed 7 years ago

HuuNguyen312 commented 7 years ago
Information:Gradle tasks [:app:assembleDebug]
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lde/tavendo/autobahn/ByteBufferInputStream;
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
Information:BUILD FAILED
Information:Total time: 58.616 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console
RWebRTC commented 7 years ago

@ngochuu90 How did you build it? git clone and open RAppRTC(NOT WebRTC-Android-Learn) with Android Studio? Error 1: Reference Here,clean and rebuild. Error 2: Reference Here, Add

defaultConfig {
    multiDexEnabled true
}

into the app/build.gradle

HuuNguyen312 commented 7 years ago

It work. But error when start capturing screen

Screenshot
RWebRTC commented 7 years ago

@ngochuu90 it works. And this is not the error. like

Screenshot
HuuNguyen312 commented 7 years ago

@RWebRTC Thanks for your answer. But still error, Camera not work. I've enabled camera permission

RWebRTC commented 7 years ago

@ngochuu90 ~~https://github.com/RWebRTC/WebRTC-Android-Learn/blob/master/RAppRTC/app/src/main/java/org/appspot/apprtc/PeerConnectionClient.java#L623 remove //~~ In SCREEN CAMERA SETTING, can select Screen Capture or Camera Capture.

HuuNguyen312 commented 7 years ago

Work perfect. Thank you!