【问题标题】:Command gradlew.bat failed with exit code 1 while compiling a Vue NativeScript project编译 Vue NativeScript 项目时,命令 gradlew.bat 失败,退出代码为 1
【发布时间】:2018-06-04 11:46:31
【问题描述】:

我是 vue-nativescript 的新手,在尝试我的第一个应用试用时,我收到以下错误。

info: Bundling application for android...

Webpack is watching the files…

Executing post-build scripts
info: Running NativeScript application...
Searching for devices...
Skipping prepare.
Building project...
Gradle build...
Unable to apply changes on device: 3300369ecaaa23b3. Error is: Command 
gradlew.bat failed with exit code 1.

我使用的是 NativeScript 4.1.0

【问题讨论】:

    标签: javascript android vue.js nativescript


    【解决方案1】:

    尝试将multiDexEnabled true 添加到您的 app.gradle 文件中,如下所示:

    android {  
          defaultConfig {  
                generatedDensities = []
                multiDexEnabled true
                applicationId = XXX
          }  
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-14
      • 1970-01-01
      • 2020-05-10
      • 1970-01-01
      • 2020-07-16
      • 2019-07-06
      • 2015-03-08
      • 1970-01-01
      相关资源
      最近更新 更多