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.

[0.61.2] Can't bundle/assemble release, debug works

See original GitHub issue

I updated my project to 0.61.2 to make use of hermes to shrink my app size and now I can’t generate a release version. I tested with a new app and the same error happens:

A problem occurred starting process 'command '..\..\node_modules\hermes-engine\win64-bin\hermes''

I also get this other error in my project, didn’t try to reproduce it here. I get either one

error ENOENT: no such file or directory, open 'C:\Users\Thales\myOtherProject\android\app\build\intermediates\sourcemaps\react\release\index.android.bundle.packager.map'

I’ve tried cleaning, rebuilding, updating the CLI, recreating node_modules, checking the path to hermes-engine and still nothing.

React Native version: OS: Windows 10 CPU: (4) x64 Intel® Core™ i7-3517U CPU @ 1.90GHz Memory: 2.38 GB / 7.89 GB Binaries: Node: 10.16.3 - C:\Program Files\nodejs\node.EXE npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 16, 20, 23, 25, 26, 27, 28, 29 Build Tools: 23.0.1, 25.0.1, 26.0.1, 26.0.2, 26.0.3, 27.0.1, 27.0.3, 28.0.0, 28.0.2, 28.0.3, 29.0.2 System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-27 | Google Play Intel x86 Atom IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2

Steps To Reproduce

  1. react-native init newApp
  2. Enable Hermes and Proguard
  3. react-native run-android --variant=release

Describe what you expected to happen: Should generate a release apk and install app on device/emulator

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
SirKadogancommented, Nov 1, 2019

I haven’t had time to check on this issue again, I’ll do as soon as possible and see if your fix does the job for me

0reactions
stale[bot]commented, Feb 18, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native local assets images not showing some time on ...
Try to bundle all your assets before release apk file using this code: ... android/app/build/intermediates/assets/debug/index.android.bundle ...
Read more >
React Native Generate APK — Debug and Release APK
A debug .apk file will allow you to install and test your app before ... react-native bundle --platform android --dev false --entry-file ...
Read more >
bundletool - Android Developers
bundletool is the underlying tool that Android Studio, the Android Gradle plugin, and Google Play use to build an Android App Bundle.
Read more >
Steps To Follow To Debug and Release APK File in React ...
This is an important step of React Native app development as here, the bundle for an app is created. Step 4: Generate APK....
Read more >
Bundled Hermes - React Native
debugImplementation files(hermesPath + "hermes-debug.aar") ... machines need to follow those extra steps to let the build work correctly:.
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