Fail to run react-native run-android on react-native 0.61, react-native-webrtc 1.75
See original GitHub issueExpected behavior
App starts and runs
Observerd behavior
App crashed when run react-native run-android I tried to clean and build multiple times but it seems like it’s the library/importing issue
java.lang.NoSuchMethodError: No static method createEgl14([I)Lorg/webrtc/EglBase14; in class Lorg/webrtc/EglBase; or its super classes (declaration of 'org.webrtc.EglBase' appears in /data/app/com.awesomeproject-ZT3O95RIqLEg0Kt5h2dpQA==/base.apk)
at com.oney.WebRTCModule.EglUtils.getRootEglBase(EglUtils.java:35)
at com.oney.WebRTCModule.EglUtils.getRootEglBaseContext(EglUtils.java:62)
at com.oney.WebRTCModule.WebRTCModule.initAsync(WebRTCModule.java:98)
at com.oney.WebRTCModule.WebRTCModule.lambda$new$0$WebRTCModule(WebRTCModule.java:73)
at com.oney.WebRTCModule.-$$Lambda$WebRTCModule$CnyHZvkjDxq52UReGHUZlY0JsVw.run(Unknown Source:4)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Steps to reproduce the problem
I followed https://github.com/react-native-webrtc/react-native-webrtc/blob/master/Documentation/AndroidInstallation.md
in my gradle-wrapper.properties I have
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
to match with my gradle plug-in version
Runs the project
Platform information
“react”: “16.9.0”
- React Native version: 0.61.4,
- Plugin version: ^1.75.3
- OS: Android
- OS version: Gradle Plug-in : 3.6.1 Gradle: 6.0.1 (I have a feeling Gradle might affect this since I just updated to the newest Android/Gradle version)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
App crash on android when add react-native-webrtc into ...
I just add below line in package.json “react-native-webrtc”: “1.75.2” then run yarn install to download dependency and launch the app in ...
Read more >My another React Native was working fine upto 4 November ...
FAILURE : Build failed with an exception. * What went wrong: Execution failed for task ':react-native-webrtc:compileDebugJavaWithJavac'. >
Read more >react-native-webrtc - npm
Start using react-native-webrtc in your project by running `npm i ... There are 35 other projects in the npm registry using react-native-webrtc.
Read more >Getting Started with FullStory React Native Capture
Run expo prebuild to generate native files without running your app. Verify that the correct native file changes have been applied in your...
Read more >React Native + webRTC (Video Calling Mobile Application)
React Hooks. What we will be creating. Video calling application for Android + IOS; Implementing webRTC using package “react-native-webrtc” ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be able to fix the issue by opening up your
gradle.properties
file and adding in thisandroid.enableDexingArtifactTransform.desugaring=false
seems to be an issue with the new gradle versions, hopefully fixed soon.@8BallBomBom which version do you mean? faced same issue