Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run android fails: Error: spawn ./gradlew EACCES #87

Closed
skotchpine opened this issue Nov 2, 2020 · 1 comment
Closed

npm run android fails: Error: spawn ./gradlew EACCES #87

skotchpine opened this issue Nov 2, 2020 · 1 comment

Comments

@skotchpine
Copy link

Describe the bug
Fresh CRNWA fails when starting android.

To Reproduce
Steps to reproduce the behavior:

  1. npx crnwa xxx; cd xxx
  2. npm run android, see error Failed to install the app ...

Screen Shot 2020-11-02 at 12 15 31 PM

Desktop (please complete the following information):

  • OS: macOS Catalina 10.15.7 (19H2)
  • nodejs: v14.11.0
  • npx: 6.14.8
  • crnwa: 0.16.1

generated package.json

{
  "name": "xxx",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "lint": "eslint .",
    "web": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "dependencies": {
    "react": "17.0.1",
    "react-native": "0.63.2",
    "react-dom": "^17.0.1",
    "react-native-web": "^0.14.7",
    "react-scripts": "4.0.0",
    "web-vitals": "^0.2.4"
  },
  "devDependencies": {
    "@babel/core": "^7.8.4",
    "@babel/runtime": "^7.8.4",
    "@react-native-community/eslint-config": "^1.1.0",
    "metro-react-native-babel-preset": "^0.63.0",
    "react-test-renderer": "17.0.1",
    "react-native-codegen": "0.0.4"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Additional context
I fixed it by running: chmod +x ./android/gradlew

@orYoffe
Copy link
Owner

orYoffe commented Nov 15, 2020

Fixed in v0.16.2

@orYoffe orYoffe closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants