Skip to content

RN0.81.4, when packaging APK, createBundleReleaseJsAndAssets error occurs, index.android.bundle.hbc doesn't exist. #53831

@cx5168

Description

@cx5168

Description

RN0.81.4, when packaging APK, createBundleReleaseJsAndAssets error occurs, index.android.bundle.hbc doesn't exist.

Steps to reproduce

1, npm i
2, cd android
3, .\gradlew assembleRelease

React Native Version

0.81.4

Affected Platforms

Build - Windows

Output of npx @react-native-community/cli info

System:
  OS: Windows 10 10.0.19045
  CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
  Memory: 5.11 GB / 15.83 GB
Binaries:
  Node:
    version: 22.19.0
    path: D:\nodeVM\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.9.3
    path: D:\nodeVM\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: Not Found
  Visual Studio: Not Found
Languages:
  Java: 17.0.0
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.81.4
    wanted: 0.81.4
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

> Task :app:createBundleReleaseJsAndAssets
Caching disabled for task ':app:createBundleReleaseJsAndAssets' because:
  Build cache is disabled
  Caching has not been enabled for the task
Task ':app:createBundleReleaseJsAndAssets' is not up-to-date because:
  Task has failed previously.
Starting process 'command 'cmd''. Working directory: E:\testapp Command: cmd /c node node_modules\react-native\cli.js bundle --platform android --dev false --reset-cache --entry-file index.js --bundle-output android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle --assets-dest android\app\build\generated\res\createBundleReleaseJsAndAssets --sourcemap-output android\app\build\intermediates\sourcemaps\react\release\index.android.bundle.packager.map --minify false --verbose
Successfully started process 'command 'cmd''



 WARN  the transform cache was reset.
                Welcome to Metro v0.83.1
              Fast - Scalable - Integrated


LOG:Writing bundle output to: android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle
LOG:Writing sourcemap output to: android\app\build\intermediates\sourcemaps\react\release\index.android.bundle.packager.map
LOG:Done writing bundle output
LOG:Done writing sourcemap output
Copying 412 asset files
Done copying assets
Starting process 'command 'cmd''. Working directory: E:\testapp Command: cmd /c node_modules\react-native\sdks\hermesc\win64-bin\hermesc.exe -w -emit-binary -max-diagnostic-width=80 -out android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle.hbc android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle -O -output-source-map  
Successfully started process 'command 'cmd''

> Task :app:createBundleReleaseJsAndAssets FAILED
Build 602f7779-00ab-4b61-841b-96f063117435 is closed
Build 4c607c42-d0a8-471b-8a3c-e4242ce7f432 is closed

[Incubating] Problems report is available at: file:///E:/testapp/android/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:createBundleReleaseJsAndAssets'.
> kotlin.io.NoSuchFileException: E:\testapp\android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle.hbc: The source file doesn't exist.

MANDATORY Reproducer

none

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionIssues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Platform: AndroidAndroid applications.📦Bundler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions