简体   繁体   English

Sencha Cmd错误:构建失败

[英]Sencha Cmd Error: Build Failed

After running sencha generated app Practise '../www/Practise' it showed some errors. 运行sencha生成的应用程序Practice'../www/Practise'后,它显示了一些错误。 Here the error message: 这里的错误信息:

[ERR] BUILD FAILED
[ERR] java.lang.NullPointerException
[ERR] 
[ERR] Total time :4 seconds
[ERR] com.sencha.exceptions.BasicException

I dont know if this is the same issue you were having but this is why I got that error: 我不知道这是否与您遇到的问题相同,但这就是为什么我收到该错误的原因:

  1. I tried to generate the app unsuccessfully 我尝试生成应用失败
    • This created a directory for my app and put some files in it but the app was incomplete 这为我的应用程序创建了一个目录,并在其中放置了一些文件,但是应用程序不完整
  2. I fixed the original issue and ran the command again. 我已修复了原始问题,然后再次运行了该命令。
    • I got the error you were receiving. 我收到了您收到的错误消息。

This was because the folder in www/ yourproject already existed. 这是因为www / yourproject中的文件夹已经存在。 I deleted this folder and ran the command successfully. 我删除了此文件夹并成功运行了命令。

Hope this helps!! 希望这可以帮助!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM