https://stackoverflow.com/questions/47129506/cordova-project-error-spawn-eacces
1) changed the Cordova "myApp/platforms/android" project's Android gradle plugin and gradle version pair to a pair supported by Cordova gradle build configuration and Android Studio 3.0 IDE. Old values are commented-out below.
.../android build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
//classpath 'com.android.tools.build:gradle:2.2.3'
}
.../android/CordovaLib build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
//classpath 'com.android.tools.build:gradle:2.2.3'
.../gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
#distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
2) chmod execution bits on Cordova platforms "android" directory and all subdirectories:
cd to .../myApp/platforms
chmod -R 755 android
Not sure this was required, do #1 first and test.
3) I did the same for my Android sdk directory and all its subdirectories. Not sure this was required, do #1 first and test.
网友评论