使用Cordova构建Sencha Touch应用程序-[您可能没有构建此项目所需的环境或操作系统]错误



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

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

我正在使用Win7,使用sencha touch 2.4和sencha cmd v5.1。我使用Android sdk管理器下载了Android sdk(API 19)。

这是命令输出:

D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPA>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:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPA/build/temp/production/GeoMapTematicPA/sencha-compiler/cmd-packages.js
[INF] writing content to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAbootstrap.js
[INF] appending content to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAbootstrap.js
[INF] appending content to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAbootstrap.js
[INF] appending content to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAbootstrap.js
[INF] Appending content to  D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPA/bootstrap.json
[WRN] C1014: callParent has no target (me.callParent in Ext.dataview.DataView.onAfterRender) -- D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAtouchsrcdataview
DataView.js:892
[WRN] C1014: callParent has no target (this.callParent in Ext.Decorator.setDisabled) -- D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAtouchsrcDecorator.js:157
[WRN] C1014: callParent has no target (this.callParent in Ext.data.ArrayStore.loadData) -- D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAtouchsrcdataArrayStore.js:64
[WRN] C1014: callParent has no target (this.callParent in Ext.fx.animation.Wipe.getData) -- D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAtouchsrcfxanimationWipe.js:119:7
[INF] merging 0 input resources into D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAcordovawwwresources
[INF] merged 0 resources into D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAcordovawwwresources
[INF] merging 87 input resources into D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAcordovawww
[INF] merged 0 resources into D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAcordovawww
[INF] executing compass using system installed ruby runtime
identical ../css/app.css
[INF] Copying page resources to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAcordovawww
[INF] Writing content to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPA/cordova/www/microloader.js
[INF] Appending content to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPA/cordova/www/microloader.js
[INF] Building output markup to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPA/cordova/www/index.html
[INF] Writing content to D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPA/cordova/www/index.html
[INF] [Cordova] Attempting Cordova Build for platforms "android"
[INF] [shellscript]
[INF] [shellscript] D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAcordova>cordova  build android
[INF] [shellscript] Running command: D:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAcordovaplatformsandroidcordovabuild.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:SviluppovariesourcePROGETTIGeoMapTematicPAGeoMapTematicPAcordovaplatfrmsandroidcordovabuild.bat: Command failed with exit code 1
[INF] [shellscript] You may not have the required environment or OS to build this project

提前感谢,如有任何帮助,我们将不胜感激。

如这里所建议的,Cordova/Ionic构建错误(有时):don';t具有所需的环境,要做的是将此"%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\Wbem;%SystemRoot%\system32\\WindowsPowerShell \v1.0"复制并粘贴到环境变量Path。

最新更新