You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hermes enabled. I have many packages in a project.
react-native run-android runs just fine.
Buidling in release fails: Ex. react-native run-android --variant release
What happens: Execution failed for task ':app:bundleReleaseJsAndAssets'. Process 'command '../../node_modules/hermes-engine/linux64-bin/hermes'' finished with non-zero exit value 2
More about the error: Error: Command failed: ./gradlew app:installRelease -PreactNativeDevServerPort=8081
/home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:1: error: Invalid UTF-8 continuation byte �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:1: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:2: error: Invalid UTF-8 continuation byte �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:2: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:4: error: Invalid UTF-8 lead byte 0xfffffffb �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:4: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:5: error: Invalid UTF-8 continuation byte �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:5: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:6: error: unrecognized Unicode character \u6 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:7: error: unrecognized Unicode character \u0000 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:8: error: unrecognized Unicode character \u0000 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:10: error: unrecognized character '#' �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:11: error: unrecognized Unicode character \u0000 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:12: error: unrecognized Unicode character \u0000 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:13: error: Invalid UTF-8 lead byte 0xffffff88 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:13: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:14: error: Invalid UTF-8 continuation byte �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:14: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:15: error: unrecognized Unicode character \u3 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:16: error: unrecognized Unicode character \u0000 �� ��� <unknown>:0: error: too many errors emitted
My guess:
index.android.bundle is not a text file.
The line causing the error in react.gradle 156. line: commandLine(getHermesCommand(), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags)
What I don't understand is, how can the index.android.bundle file contain unrecognizable unicode characters?
Describe what you expected to happen:
The build finishes without errors.
The text was updated successfully, but these errors were encountered:
Hello, I am experiencing the same issue, I just enabled hermes, the app runs fine with react-native run-android, but when I build for release, I get this error (the errors you see in the top half repeats a lot more, I just wanted to focus on the final part with the error details)
facebook
locked as resolved and limited conversation to collaborators
Oct 2, 2021
React Native version:
RN61.4 and below.
Steps To Reproduce
What happens:
Execution failed for task ':app:bundleReleaseJsAndAssets'. Process 'command '../../node_modules/hermes-engine/linux64-bin/hermes'' finished with non-zero exit value 2
More about the error:
Error: Command failed: ./gradlew app:installRelease -PreactNativeDevServerPort=8081
/home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:1: error: Invalid UTF-8 continuation byte �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:1: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:2: error: Invalid UTF-8 continuation byte �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:2: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:4: error: Invalid UTF-8 lead byte 0xfffffffb �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:4: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:5: error: Invalid UTF-8 continuation byte �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:5: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:6: error: unrecognized Unicode character \u6 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:7: error: unrecognized Unicode character \u0000 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:8: error: unrecognized Unicode character \u0000 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:10: error: unrecognized character '#' �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:11: error: unrecognized Unicode character \u0000 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:12: error: unrecognized Unicode character \u0000 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:13: error: Invalid UTF-8 lead byte 0xffffff88 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:13: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:14: error: Invalid UTF-8 continuation byte �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:14: error: unrecognized Unicode character \ufffd �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:15: error: unrecognized Unicode character \u3 �� ��� /home/sixzero/repo/complexapp/android/app/build/generated/assets/react/release/index.android.bundle:1:16: error: unrecognized Unicode character \u0000 �� ��� <unknown>:0: error: too many errors emitted
My guess:
index.android.bundle is not a text file.
The line causing the error in
react.gradle
156. line:commandLine(getHermesCommand(), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags)
What I don't understand is, how can the index.android.bundle file contain unrecognizable unicode characters?
Describe what you expected to happen:
The build finishes without errors.
The text was updated successfully, but these errors were encountered: