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.

Release APK unable to pickup thread js file and hence crashes

See original GitHub issue

Hello again, I trying to check the release version of my app after using Thread module in one of the pages and I have followed the steps to compile my thread.js and support.js file as per the command give accordingly and it generates the file as well, now when I open the page which is associated with this Thread module my app closes and tried removing it form the page and it works fine.

So probably I there might be some issue while building the bundle file. PS: I have 2 thread worker files and I have compiled both the files.

Is there anything else I have to do for multiple files ?

And just FYI: in your simpleexample folder in package.json the command for build-thread-android has spacing in folder names hence does not work.

This is the line

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Traviskncommented, Apr 26, 2018

@JoyHou Although that path works in development mode thanks to the JavaScript packager, it will not work in production mode. The correct path for production mode would be new Thread('thread.js'). This is because in production mode we look in the android/app/src/main/assets/threads folder, and the path is relative to the root of that folder. What I’ve needed to do in my projects is organize my files in such a way as to make the development and production paths match.

0reactions
JoyHoucommented, Apr 26, 2018

@Traviskn Thank you so much! It now works perfectly!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release APK crash immediately on launch - React Native ...
I have resolved this issue by using JSC build scripts for Android. React Native 0.59 will embed that JSC version, so unless someone...
Read more >
React-native (Signed) release apk keeps crashing in device
To those wanderers that face the same problem as I did, here's the solution: i. Go to [ProjectName]/android/app/src/main.
Read more >
Solved: Packaging Error in React-Native Release APK
The error means that there is an issue with the bundling of our JS files. It may so happen that your development/debug apk...
Read more >
522525 - New version of Webview content flickering when ...
Issue 522525: New version of Webview content flickering when resizing webview and crashes after certain time. Reported by schedule vinwa.
Read more >
Tasks and the back stack - Android Developers
When a user presses or gestures Back from a root launcher activity, the system handles the event differently depending on the version of...
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