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.

Failed to run android on React Native 0.71 #2418

@ajaxjiang96

Description

@ajaxjiang96

Steps to Reproduce

  1. Upgrade react native version to 0.71 following the upgrade helper
  2. Install dependencies
  3. Run yarn android

Expected Behavior

App builds and runs under debug mode

Actual Behavior

After upgraded to React Native 0.71, the android build fails with the following message:

* What went wrong:
Could not determine the dependencies of task ':app:generateBundledResourcesHashDebug'.
> Task with path 'bundleDebugJsAndAssets' not found in project ':app'.

Environment

  • react-native-code-push version: 7.0.5
  • react-native version: 0.71.0
  • iOS/Android/Windows version: Android 11
  • Does this reproduce on a debug build or release build? debug
  • Does this reproduce on a simulator, or only on a physical device? simulator

Other Attempts

After removing the following lines from android/build.gradle the build seems to work fine (w/o codepush of course)

apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions