Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Task :app:generateBundledResourcesHashRelease FAILED #1812

@afrinsulthana1

Description

@afrinsulthana1

I have a react native app and it fails when I try to make a build after adding CodePush.

Expected Behavior

Build & run on Android without errors

Actual Behavior

The build fails with the following message:

Task :app:generateBundledResourcesHashQARelease FAILED
internal/fs/utils.js:230
    throw err;
    ^

Error: ENOENT: no such file or directory, scandir '../android/app/build/generated/res/react/QA/release'
    at Object.readdirSync (fs.js:871:3)
    at getFilesInFolder (../node_modules/react-native-code-push/scripts/getFilesInFolder.js:7:26)
    at Object.<anonymous> (../node_modules/react-native-code-push/scripts/generateBundledResourcesHash.js:38:1)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47 {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: '../android/app/build/generated/res/react/QA/release'

Environment

  • react-native-code-push version: 6.1.0
  • react-native version: 0.61.5
  • iOS/Android/Windows version: Android API 28

(The more info the faster we will be able to address it!)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions