Release APK unable to pickup thread js file and hence crashes
See original GitHub issueHello 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:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top 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 >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
@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 theandroid/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.@Traviskn Thank you so much! It now works perfectly!