Why do I receive Cannot run program gradle upon job execution

Issue

  • Android Gradle Build Error
  • java.io.IOException: Cannot run program "gradle" (in directory "/scratch/jenkins/workspace/ - Gradle/clean"): error=2, No such file or directory

Environment

Dev@cloud

Resolution

You may run into this exception if the job is configured incorrectly. Please review and confirm that the command is entered into the correct field.

Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Igor Ganapolsky

    I am getting the following error from gradlew on my CI machine:

    java.io.IOException: Cannot run program "android-sdk-macosx/build-tools/25.0.0/aapt" (in directory "/Users/Shared/Jenkins/Home/jobs/My_App_Android_Gradle/workspace/distribution/apk-My-release"): error=2, No such file or directory

Please sign in to leave a comment.