orYoffe/create-react-native-web-app

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

skotchpine opened this issue · 1 comments

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

Fixed in v0.16.2