没有microloader构建错误的Sencha Touch 2.3项目

时间:2013-10-05 16:48:51

标签: sencha-touch-2 sencha-cmd

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

...
[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应用程序。

0 个答案:

没有答案