【发布时间】:2026-02-05 16:40:01
【问题描述】:
我已经下载了 sencha command v3.1.2.342 , sencha touch2.4.0-commercial 并安装了 ruby 1.9.3p545 并安装了 sass 和 compass 和 ant 并安装了 jdk 1.7 并在我的 windows 7 64 位中成功设置了 classpath ,path机器。
PS:我面临的问题是无法从 sencha touch 示例项目生成 android 骨架项目。
我已经执行了以下命令sencha app package build packager.json
我所有的 android directortes 即 android 骨架项目被创建然后自动删除而不生成 apk。
对于这个问题,我在他们的网站论坛中搜索,http://www.sencha.com/forum/showthread.php?199120-ST2-Native-Packaging-command-fails-on-Windows-7-x64,他们提到更改 outputPath 因为输出路径不能在应用程序路径本身内。在其他地方设置 outputPath,例如在桌面上,彻底解决了这个问题。
我没有尝试过任何适合我的方法。 我得到的错误:
无法将 Web 应用程序 ./\ 复制到输出文件夹 D:/build/\assets\ 打包申请失败
[ERR] stbuild exited with non-zero code : 3
完整的堆栈跟踪:
D:\San\olderversion\webv2>sencha app package build packager.json
Sencha Cmd v3.1.2.342
[ERR]
Created directory D:\build\src\com\san\App
Added file D:\build\src\com\san\App\STActivity.java
Created directory D:\build\res
Created directory D:\build\bin
Created directory D:\build\libs
Created directory D:\build\res\values
Added file D:\build\res\values\strings.xml
Created directory D:\build\res\layout
Added file D:\build\res\layout\main.xml
Created directory D:\build\res\drawable-xhdpi
Created directory D:\build\res\drawable-hdpi
Created directory D:\build\res\drawable-mdpi
Created directory D:\build\res\drawable-ldpi
Added file D:\build\AndroidManifest.xml
Added file D:\build\build.xml
Added file D:\build\proguard-project.txt
A subdirectory or file D:\build\\\libs\ already exists.
A subdirectory or file D:\build\\\assets\ already exists.
""C:/Android/adt-bundle-windows-x86/sdk\tools\android" create project --target android-17 --name App --activity STActivity --path "D:/build/\/" --package com.san
.App"
Could not copy web application ./\ to output folder D:/build/\\assets\
Failed to package application
[ERR] stbuild exited with non-zero code : 3
【问题讨论】:
标签: android extjs sencha-cmd