You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
Result and log
The C:\build_webrtc_android\tools\build\android\webrtc-native\build\outputs\aar\mrwebrtc.aar exists. But the output of the merge shell script throws an error both in Android Studio and under the CLI execution with gradlew.bat assembleRelease.
Android Studio build error output.
> Task :webrtc-native:mergeLibwebrtcArchive FAILED
Caching disabled for task ':webrtc-native:mergeLibwebrtcArchive' because:
Build cache is disabled
Task ':webrtc-native:mergeLibwebrtcArchive' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Starting process 'command 'bash''. Working directory: C:\build_webrtc_android\tools\build\android\webrtc-native Command: bash ./merge-archives.sh -m C:\build_webrtc_android\tools\build\android\webrtc-native/build/outputs/aar/mrwebrtc.aar -o ./build/outputs/aar/merged/mrwebrtc.aar
Successfully started process 'command 'bash''
:webrtc-native:mergeLibwebrtcArchive (Thread[Execution worker for':' Thread 4,5,main]) completed. Took 0.131 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':webrtc-native:mergeLibwebrtcArchive'.
> Process 'command 'bash'' finished with non-zero exit value 1
Error message from make Project with default automatic generated mrwebrtc.gradle.
With mrwebrtc.gradle and directory gradle.ext.webrtcBinDir = '/mnt/c/build_webrtc_android/webrtc/src/out/android/arm64'
Cannot open a library at 'FileMapping(from=C:\build_webrtc_android\tools\build\android\webrtc-native\mnt\c\build_webrtc_android\webrtc\src\out\android\arm64\Release\lib.java\sdk\android\libwebrtc.jar, to=C:\Users\colma\.gradle\caches\transforms-2\files-2.1\6e52712433a5dc2dc85d22996949cd2b\jetified-libwebrtc.jar)'
Describe the bug
Android Studio build fails in
merge-archives.shwith library compiled from master branch under WSL2.To Reproduce
/mnt/c/build_webrtc_android./tools/build/libwebrtcc:\build_webrtc_android\tools\build\Androidin Android Studio under WindowsReleasemrwebrtc.gradlereplacing/mnt-based path withgradle.ext.webrtcBinDir = 'c:\\build_webrtc_android\\webrtc\\src\\out\\android\\arm64'File -> Project Structure -> Select drop-down recommendation for NDK directoryMake ProjectExpected behavior
Successful build expected.
Result and log
The
C:\build_webrtc_android\tools\build\android\webrtc-native\build\outputs\aar\mrwebrtc.aarexists. But the output of the merge shell script throws an error both in Android Studio and under the CLI execution withgradlew.bat assembleRelease.Android Studio build error output.
Error message from make Project with default automatic generated mrwebrtc.gradle.
With
mrwebrtc.gradleand directorygradle.ext.webrtcBinDir = '/mnt/c/build_webrtc_android/webrtc/src/out/android/arm64'Cannot open a library at 'FileMapping(from=C:\build_webrtc_android\tools\build\android\webrtc-native\mnt\c\build_webrtc_android\webrtc\src\out\android\arm64\Release\lib.java\sdk\android\libwebrtc.jar, to=C:\Users\colma\.gradle\caches\transforms-2\files-2.1\6e52712433a5dc2dc85d22996949cd2b\jetified-libwebrtc.jar)'Environment