Cordova

cordova工程执行cordova build 出现 spaw

2017-12-07  本文已影响8人  山东菏泽朱志强

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.
上一篇下一篇

猜你喜欢

热点阅读