【问题标题】:Why does cleaning and building android project with batch script always end with an error?为什么用批处理脚本清理和构建android项目总是以错误结束?
【发布时间】:2016-04-19 10:23:36
【问题描述】:

我正在尝试使用批处理脚本构建 android 应用程序。我有以下批处理脚本:

pause
gradlew.bat -PversCode=33 -PversName=2.5 clean build
echo Done building with success >>%BUILDLOG%

我被要求在第一次暂停后按任意键继续,但第二次暂停永远不会出现。该行确实创建了一个 apk 文件,但我从未在我的日志文件中看到完成构建成功。那个批处理脚本有问题吗?提前致谢。

【问题讨论】:

    标签: batch-file android-gradle-plugin build.gradle android-build gradlew


    【解决方案1】:

    调用 gradlew.bat -PversCode=33 -PversName=%REVNR% clean build

    已解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-21
      • 2018-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多