error in release build
See original GitHub issueEXCEPTION Encountered after running in release mode!
12-09 03:02:47.959 8890-9842/? E/UncaughtException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to load script from assets ‘threads/._index.thread.bundle’. Make sure your bundle is packaged correctly or you’re running a packager server.
- my index.thread.js in the project root i.e same as index.android.js level.
- I ran a command
node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./android/app/src/main/res/ --entry-file index.thread.js --platform android --bundle-output ./android/app/src/main/assets/threads/index.thread.bundle
- bundle got created under
/android/app/src/main/assets/threads
what could be the reason?? using 0.49.5 - RN version
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Common Problems When Creating a Release Build
See the /GZ (Catch Release-Build Errors in Debug Build) compiler option for information on how to catch release build errors in debug builds....
Read more >Error: You are debugging a Release build of X.dll
This way you'll be able to step through code while debugging and Visual Studio won't bark about "Release" version anymore.
Read more >Internal link error when compiling in Release mode
When I compile my DLL project in Release mode, I get the following linker error: 1>------ Erstellen gestartet: Projekt: K-Lib, Konfiguration: ReleaseMongo ...
Read more >Running application in "Release mode causes errors"
If your application runs fine in Debug, but not in Release, this typically indicates there is an bug somewhere that doesn't get tripped...
Read more >Build works for Debug but fails for Release
My problem is that when I choose to do a release build, I get some errors I don't understand: C51 COMPILER V9.53.0.0 -...
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
I have this problem too!
java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to load script from assets 'threads/..index.thread.bundle'. Make sure your bundle is packaged correctly or you're running a packager server
That could be a good PR! As long as people understand that relative file paths won’t be used in release mode, but rather we will simply look for the matching file under the
assets/threads
folder your code would be very helpful