Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error ENOENT: no such file or directory, open 'app/src/main/AndroidManifest.xml'

I do run program react-native to use code react-native run-android and npm start but program Error file AndroidManifest, if have a file.

error ENOENT: no such file or directory, open 'app/src/main/AndroidManifest.xml' package.json

    {
  "name": "react-native-inappbrowser-reborn",
  "version": "2.0.4",
  "description": "InAppBrowser for React Native",
  "main": "index.js",
  "readmeFilename": "README.md",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
    "start": "index.js",
  },
  "typings": "./index.d.ts",
  "repository": {
    "type": "git",
    "url": "[email protected]:proyecto26/react-native-inappbrowser.git"
  },
  "bugs": {
    "url": "https://github.com/proyecto26/react-native-inappbrowser/issues"
  },
  "keywords": [
    "react-native",
    "in",
    "app",
    "browser",
    "inappbrowser",
    "in-app-browser"
  ],
  "author": "Juan David Nicholls Cardona",
  "homepage": "https://github.com/proyecto26/react-native-inappbrowser",
  "license": "MIT",
  "peerDependencies": {
    "react-native": ">=0.55.0"
  },
  "dependencies": {
    "invariant": "^2.2.4",
    "react-native": "^0.59.9"
  },
  "devDependencies": {
    "babel-core": "^6.26.0",
    "flow-bin": "^0.80.0"
  }
}

up data

This error is caused by `hasteImpl` returning the same name for different files.
    at setModule (F:\react-hr-and-ess\node_modules\metro\node_modules\jest-haste-map\build\index.js:569:17)
    at workerReply (F:\react-hr-and-ess\node_modules\metro\node_modules\jest-haste-map\build\index.js:641:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:16876) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

enter image description hereenter image description here

like image 748
GGMMKK 007 Avatar asked Jan 17 '26 06:01

GGMMKK 007


1 Answers

  1. (in project directory) mkdir android/app/src/main/assets
  2. react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
  3. react-native run-android

add comma after "test": "echo \"Error: no test specified\" && exit 1",

delete comma after "start": "index.js"

 "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "index.js"
  },

Correct json

    {
  "name": "react-native-inappbrowser-reborn",
  "version": "2.0.4",
  "description": "InAppBrowser for React Native",
  "main": "index.js",
  "readmeFilename": "README.md",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "index.js"
  },
  "typings": "./index.d.ts",
  "repository": {
    "type": "git",
    "url": "[email protected]:proyecto26/react-native-inappbrowser.git"
  },
  "bugs": {
    "url": "https://github.com/proyecto26/react-native-inappbrowser/issues"
  },
  "keywords": [
    "react-native",
    "in",
    "app",
    "browser",
    "inappbrowser",
    "in-app-browser"
  ],
  "author": "Juan David Nicholls Cardona",
  "homepage": "https://github.com/proyecto26/react-native-inappbrowser",
  "license": "MIT",
  "peerDependencies": {
    "react-native": ">=0.55.0"
  },
  "dependencies": {
    "invariant": "^2.2.4",
    "react-native": "^0.59.9"
  },
  "devDependencies": {
    "babel-core": "^6.26.0",
    "flow-bin": "^0.80.0"
  }
}
like image 111
Umbro Avatar answered Jan 19 '26 20:01

Umbro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!