美文网首页Cordova
cordova工程执行cordova build 出现 spaw

cordova工程执行cordova build 出现 spaw

作者: 山东菏泽朱志强 | 来源:发表于2017-12-07 10:13 被阅读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.

相关文章

网友评论

    本文标题:cordova工程执行cordova build 出现 spaw

    本文链接:https://www.haomeiwen.com/subject/zrxdixtx.html