use
commandLine 'sh', './myScript.sh'
your script itself is not a program itself, that’s why you have to declare ‘sh’ as the program and the path to your script as an argument.
More Related Contents:
- How to enable multidexing with the new Android Multidex support library
- DexIndexOverflowException Only When Running Tests
- Building and running app via Gradle and Android Studio is slower than via Eclipse
- Android java.exe finished with non-zero exit value 1 [closed]
- HttpClient won’t import in Android Studio
- Android Studio gradle takes too long to build
- What does “Program type already present” mean?
- Gradle: Execution failed for task ‘:processDebugManifest’
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- com.google.android.gms:play-services-measurement-base is being requested by various other libraries
- Android Studio: Gradle – build fails — Execution failed for task ‘:dexDebug’
- Android Studio – Importing external Library/Jar
- findFragmentById for SupportMapFragment returns null in Android Studio
- How do I use tools:overrideLibrary in a build.gradle file?
- Could not resolve all dependencies for configuration ‘:classpath’
- How to change the Android app package name when assembling with Gradle?
- Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml
- Failed to read PNG signature: file does not start with PNG signature
- How to add firebase-admin to my android project?
- Android Studio: Android Manifest doesn’t exists or has incorrect root tag
- How to downgrade to older version of Gradle
- Problems in Android repository Flutter TensorFlow-lite by Bintray 502
- How to exclude res folder from gradle build flavours?
- Gradle version 1.10 is required. Current version is 2.0
- Setting up Gradle for api 26 (Android)
- Could not find property ‘outputFile’ on com.android.build.gradle.internal.api.ApplicationVariantImpl
- com.android.builder.testing.ConnectedDevice > hasTests[test(AVD) – 5.0] FAILED
- Execution failed for task ‘:app:compileDebugJavaWithJavac’ Android Studio 3.1 Update
- Android Studio – processDebugResources failed
- compileReleaseKotlin fails with java.lang.ClassNotFoundException: com.sun.tools.javac.util.Context