Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30346

/gradlew': No such file or directory in circleci

$
0
0
  android:
    docker:
      - image: circleci/android:api-28-node8-alpha
    working_directory: ~/repo/android
    environment:
        JAVA_OPTS: -Xmx1536m
        GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx1536m -XX:+HeapDumpOnOutOfMemoryError"'
    steps:
      - checkout
      - run: ls; cd android
      - run:
          name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. 
          command: sudo chmod +x ./gradlew 
      - run:
          name: Download Dependencies
          command: sudo ./gradlew androidDependencies
      - run:
          name: Initial build
          command: sudo ./gradlew clean assembleRelease --no-daemon --stacktrace
      - store_artifacts:
          path: android/app/build/outputs/apk/
          destination: apks/

Here is my circle ci config.yml file, Failing to build android failing with error : chmod: cannot access './gradlew': No such file or directory.


Viewing all articles
Browse latest Browse all 30346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>