question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fail to run react-native run-android on react-native 0.61, react-native-webrtc 1.75

See original GitHub issue

Expected 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
8BallBomBomcommented, Mar 14, 2020

Should be able to fix the issue by opening up your gradle.properties file and adding in this android.enableDexingArtifactTransform.desugaring=false seems to be an issue with the new gradle versions, hopefully fixed soon.

0reactions
Desintegratorcommented, May 20, 2020

So far it doesn’t seem to cause any issues, everything works as expected. Hopefully in the much newer versions of gradle coming it won’t be an issue.

@8BallBomBom which version do you mean? faced same issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found