【问题标题】:Building Sencha Touch app with Cordova - [You may not have the required environment or OS to build this project] error使用 Cordova 构建 Sencha Touch 应用程序 - [您可能没有构建此项目所需的环境或操作系统] 错误
【发布时间】:2015-02-23 15:14:31
【问题描述】:

我正在尝试使用 sencha cmd“sencha app build native”为 Android 构建一个 sencha touch 2.4 应用程序,但我遇到了一个我无法解决的错误。

“您可能没有构建此项目所需的环境或操作系统”

我正在使用 sencha touch 2.4 和 sencha cmd v5.1 开发 Win7。我使用 Android SDK Manager 下载了 Android sdk (API 19)。

这是命令输出:

D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA>sencha app build native
Sencha Cmd v5.1.1.39
[INF] Processing Build Descriptor : native
[INF] Loading app json manifest...
[INF] Concatenating output to file D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA/build/temp/production/GeoMapTematicPA/sencha-compiler/cmd-packages.js
[INF] writing content to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\bootstrap.js
[INF] appending content to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\bootstrap.js
[INF] appending content to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\bootstrap.js
[INF] appending content to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\bootstrap.js
[INF] Appending content to  D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA/bootstrap.json
[WRN] C1014: callParent has no target (me.callParent in Ext.dataview.DataView.onAfterRender) -- D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\touch\src\dataview
\DataView.js:892
[WRN] C1014: callParent has no target (this.callParent in Ext.Decorator.setDisabled) -- D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\touch\src\Decorator.js:157

[WRN] C1014: callParent has no target (this.callParent in Ext.data.ArrayStore.loadData) -- D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\touch\src\data\ArrayStore.js:64
[WRN] C1014: callParent has no target (this.callParent in Ext.fx.animation.Wipe.getData) -- D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\touch\src\fx\animation\Wipe.js:119:7
[INF] merging 0 input resources into D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\cordova\www\resources
[INF] merged 0 resources into D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\cordova\www\resources
[INF] merging 87 input resources into D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\cordova\www
[INF] merged 0 resources into D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\cordova\www
[INF] executing compass using system installed ruby runtime
identical ../css/app.css
[INF] Copying page resources to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\cordova\www
[INF] Writing content to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA/cordova/www/microloader.js
[INF] Appending content to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA/cordova/www/microloader.js
[INF] Building output markup to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA/cordova/www/index.html
[INF] Writing content to D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA/cordova/www/index.html
[INF] [Cordova] Attempting Cordova Build for platforms "android"
[INF] [shellscript]
[INF] [shellscript] D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\cordova>cordova  build android
[INF] [shellscript] Running command: D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\cordova\platforms\android\cordova\build.bat
[INF] [shellscript] events.js:85
[INF] [shellscript]       throw er; // Unhandled '''error''' event
[INF] [shellscript]             ^
[INF] [shellscript] Error: spawn cmd ENOENT
[INF] [shellscript]     at exports._errnoException (util.js:746:11)
[INF] [shellscript]     at Process.ChildProcess._handle.onexit (child_process.js:1046:32)
[INF] [shellscript]     at child_process.js:1137:20
[INF] [shellscript]     at process._tickCallback (node.js:355:11)
[INF] [shellscript] ERROR building one of the platforms: Error: D:\Sviluppo\varie\source\PROGETTI\GeoMapTematicPA\GeoMapTematicPA\cordova\platfrms\android\cordova\build.bat: Command failed with exit code 1
[INF] [shellscript] You may not have the required environment or OS to build this project

在此先感谢,任何帮助将不胜感激。

【问题讨论】:

  • 我不明白为什么我的问题被否决了。
  • 您是否确保您的路径已根据 Android SDK 正确设置?
  • 我回答了我自己的问题,您可以在下面看到解决方案。问题在于您建议的路径。

标签: android cordova sencha-touch-2 sencha-cmd


【解决方案1】:

按照这里的建议, Cordova / Ionic build error (sometimes): don't have required environment,要做的是将这个“%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\”复制并粘贴到环境变量路径中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-12
    • 1970-01-01
    • 2012-05-06
    • 1970-01-01
    • 2014-05-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多