Skip to content

[0.62.0-rc.2] - Cannot run android: No such file or directory, open 'app\build\intermediates\merged_manifests #985

Closed

Description

@oliverwinter-vdb

Just so it doesn't get lost, but the closed issue described here is still an issue on the new RN release candidate 0.62.0-rc.2

#967

It can be replicated on new init projects when the build folder is empty or cleared.

➜ yarn android
yarn run v1.22.0
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 960 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
error ENOENT: no such file or directory, open 'app/build/intermediates/merged_manifests/debug/AndroidManifest.xml'. Run CLI with --verbose flag for more details.
Error: ENOENT: no such file or directory, open 'app/build/intermediates/merged_manifests/debug/AndroidManifest.xml'
├─ @react-native-community/cli-debugger-ui@3.0.0
├─ @react-native-community/cli-platform-android@4.0.2
├─ @react-native-community/cli-platform-ios@4.1.0
├─ @react-native-community/cli-tools@3.0.0
├─ @react-native-community/cli-types@3.0.0
└─ @react-native-community/cli@4.1.0
➜ npx react-native info
info Fetching system and libraries information...
System:
    OS: macOS 10.15.3
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
    Memory: 85.88 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 10.19.0 - ~/.nvm/versions/node/v10.19.0/bin/node
    Yarn: 1.22.0 - /usr/local/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v10.19.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 26, 27, 28, 29
      Build Tools: 26.0.3, 27.0.3, 28.0.2, 28.0.3, 29.0.2
      System Images: android-22 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.6010548
    Xcode: 11.2.1/11B53 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.11.0 => 16.11.0
    react-native: 0.62.0-rc.2 => 0.62.0-rc.2

Activity

  1. AbanoubNassem commented on Feb 19, 2020

    @AbanoubNassem

    facing the same issue :-

    
    ├─ @react-native-community/cli-debugger-ui@3.0.0
    ├─ @react-native-community/cli-platform-android@4.0.2
    ├─ @react-native-community/cli-platform-ios@4.1.0
    ├─ @react-native-community/cli-tools@3.0.0
    ├─ @react-native-community/cli-types@3.0.0
    └─ @react-native-community/cli@4.1.0
    
    
  2. robertying commented on Feb 20, 2020

    @robertying
    Contributor

    Temporary workaround (ugly):

    diff --git a/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js b/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js
    index efeb87c..69a991d 100644
    --- a/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js
    +++ b/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js
    @@ -160,7 +160,7 @@ function buildAndRun(args) {
    
       }
    
    -  const launchPackageName = (0, _getLaunchPackageName.default)(args.variant);
    +  const launchPackageName = "YOUR_PACKAGE_NAME";
       const adbPath = (0, _getAdbPath.default)();
    
       if (args.deviceId) {
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions