Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

Android-sdkV3.1, build ERROR!

Tim_L_4
Beginner
110 Views

1. Android Studio build Error info:

:src:sample:conferenceSample:generateDebugSources UP-TO-DATE
:src:sample:conferenceSample:compileDebugJavaWithJavac UP-TO-DATE
:src:sample:conferenceSample:compileDebugNdk UP-TO-DATE
:src:sample:conferenceSample:compileDebugSources UP-TO-DATE
:src:sample:conferenceSample:transformClassesWithDexForDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Execution failed for task ':src:sample:conferenceSample:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/jdk1.7.0_80/bin/java'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 5.433 secs
Information:1 error
Information:0 warnings
Information:See complete output in console

 

2. console cmd run Error:  under Ubuntu14.04 64BIT

./gradlew assembleRelease : info

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lorg/webrtc/VideoCapturerAndroid$CameraErrorHandler;
    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
    at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
    at com.android.dx.command.dexer.Main.run(Main.java:230)
    at com.android.dx.command.dexer.Main.main(Main.java:199)
    at com.android.dx.command.Main.main(Main.java:103)


:src:sample:conferenceSample:transformClassesWithDexForRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':src:sample:conferenceSample:transformClassesWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/jdk1.6.0_45/bin/java'' finished with non-zero exit value 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 12.831 secs

Thanks!

0 Kudos
1 Reply
Chunbo_H_Intel1
Employee
110 Views

We've used the release package to build our samples, and it works well.
Please try to clean the environment and rebuild again.

PS. From v3.1 on, the libjingle_peerconnection.jar is included in woogeenbase.jar. Please don’t add dependency of libjingle_peerconnection.jar in applications.

Reply