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.

Android craches with pre-build SDK

See original GitHub issue

I use macOS to build SDK image

Project build.gradle ` buildscript { ext.kotlin_version = ‘1.3.31’ repositories { maven { url “file:/tmp/repo” } google() jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:3.4.0’ classpath “org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version” // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

allprojects { repositories { google() jcenter() maven { url “file:/tmp/repo” } maven { url “https://jitpack.io” } } }

task clean(type: Delete) { delete rootProject.buildDir } `

App build.gradle .... // Jitsi Meet implementation('org.jitsi.react:jitsi-meet-sdk:+') { transitive = true } .... But it got crash while I start jitsi view Here is the log: ` 2019-05-23 11:03:47.472 30276-30316/com.calling.talk.red.debug E/ReactNativeJS: null is not an object (evaluating ‘l.SIGN_IN_CANCELLED’) 2019-05-23 11:03:47.478 30276-30316/com.calling.talk.red.debug E/ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)

--------- beginning of crash

2019-05-23 11:03:47.483 30276-30317/com.calling.talk.red.debug E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules Process: com.calling.talk.red.debug, PID: 30276 com.facebook.react.common.JavascriptException: null is not an object (evaluating ‘l.SIGN_IN_CANCELLED’), stack: <unknown>@1084:2367 h@2:1670 <unknown>@1083:386 h@2:1670 <unknown>@1082:142 h@2:1670 <unknown>@1050:2426 h@2:1670 <unknown>@1049:206 h@2:1670 <unknown>@1019:278 h@2:1670 <unknown>@1018:85 h@2:1670 <unknown>@371:240 h@2:1670 <unknown>@12:156 h@2:1670 <unknown>@11:30 h@2:1670 d@2:868 global code@1490:4

    at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:54)
    at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:38)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
    at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)
    at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
    at android.os.Looper.loop(Looper.java:164)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
    at java.lang.Thread.run(Thread.java:764)

` Please help me! Thank you very much!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ngoctan95commented, Jun 11, 2019

@california257 @saghul , I have an issue like this but I could not know how to build release.

  • In debug mode, the app use the index.android.bundle which generated by
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
  • When I run in debug mode, it not work and crash after open jitsi activity. If I delete index.android.bundle in assets directory, it works.
  • But when I wanna release signed apk, react native let me do command above for generating bundle assets or it will be crash on the startup even build successfully. If I still keep it in assets directory, in release mode, the app will be crash while I click onto open jitsi activity.
  • I think it is conflict bundle in react native app and bundle of jitsi in release mode. How can I combine them or use one of them for both app bundle and jitsi bundle? Have you tried to build release mode bundle js asset? Please help me out this issue 😦
1reaction
saghulcommented, May 24, 2019

@california257 Thanks for confirming. I’m going to close this then. @MeghsP please open a new issue since your is different.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android NDK app crashes on first call to prebuilt shared library
I am trying to build an Android app based on OpenCV for Tegra example code. I am adding a prebuilt library for aruco...
Read more >
Android build is crashing with NDK r24 · Issue #5987 - GitHub
We use AOT compilation, we need Android NDK installed on building machine. We passing its path to MSBuild by ANDROID_NDK_LATEST_HOME environment ...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to Tools > SDK Manager. In the...
Read more >
Android signed build crashes - Jitsi Community Forum
We are trying to use Jitsi Meet in react native project (our own RN project) and invoking JitsiVideo from native module.
Read more >
[SOLVED] SDKBox Vungle Causing crash after using prebuilt ...
I started using prebuilt libraries in an existing game which included SDKBOX for vungle. But after using prebuilt libs my game started crashing...
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