react-native-webrtc: The app crashes on Android on start

I installed the package and linked it to React Native following the instructions in this guide and built the release version using this command: ./gradlew assembleRelease

Then I took the .apk file and installed it on my device. The app never starts and crashes every time I open it. I made a new app from scratch and didn’t even put any code in it but followed the same installation instructions and built it and I got the same problem.

I tested the new app after doing the first 2 steps and it didn’t crash but after adding the last 3 steps, the problem happened again!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

In React Native 0.60.x greater has also this issue

Solution is <Project-folder>/android/gradle.properties add this below line

android.enableDexingArtifactTransform.desugaring=false

this is worked for me

Thanks Ajith A B

Edit your app/build.gradle file and adjust it so it looks this this section: https://github.com/jitsi/jitsi-meet/blob/b8a70379598c5480b40f2d2ac2131721781d4661/android/app/build.gradle#L24-L36

We’re not aware of any problem for using it.

android.enableDexingArtifactTransform.desugaring=false

is working in debugging mode, but app is still getting crashed in Release version

any suggestion will be helpfull.

Thanks.