1

我更改了使用 Sencha Cmd v4.0 创建的新项目,因此它不再使用 microloader。为此,我从 index.html 中删除了 microloader,为 ST 和应用程序添加了脚本以及样式。该应用程序在浏览器中运行良好,控制台日志没有错误或警告。然后,使测试构建在错误处停止:

...
[INF] -build-output-microload-page:
[INF] Writing content to /home/kio21/work/st1/build/testing/St1/microloader.js
[INF] Appending content to /home/kio21/work/st1/build/testing/St1/microloader.js
[INF] Building output markup to /home/kio21/work/st1/build/testing/St1/index.html
[ERR] 
[ERR] BUILD FAILED
[ERR] java.lang.NullPointerException
[ERR]   at com.sencha
[ERR] .command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:394)
[ERR] 
[ERR] Total time: 5 seconds
[ERR] The following error occurred while executing this line:
/home/kio21/work/st1/.sencha/app/build-impl.xml:377: The following error occurred while executing this line:
/home/kio21/work/st1/.sencha/app/page-impl.xml:116: The following error occurred while executing this line:
/home/kio21/work/st1/.sencha/app/page-impl.xml:53: java.lang.NullPointerException
     at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
...

尝试调整 app.json 或 testing.properties 文件并没有成功。同样的方法适用于之前的 Sencha Touch 2.2.1 版本,但不适用于当前的 2.3.0 版本。请告知我如何在没有 microloader 的情况下构建 ST 2.3.0 应用程序。

4

0 回答 0