簡體   English   中英

Sencha Cmd無法從sencha.cfg找到'app.dir'配置屬性

[英]Sencha Cmd Unable to locate 'app.dir' config property from sencha.cfg

我使用Sencha touch 2.1.0構建了一個sencha touch應用程序,現在我正在嘗試使用此處提供的說明構建它: http//cclerville.blogspot.in/2013/01/sencha-touch-21-phonegap-220- android_3.html

但是這個錯誤消息的構建失敗了,有人可以幫助我嗎?

$ sencha app build package && build/myshop/android/cordova/build
Sencha Cmd v3.0.2.288
[ERR]       Please ensure this command was executed from a valid application directory
[ERR]       Unable to locate 'app.dir' config property from sencha.cfg

我的sencha Cmd目錄中的sencha.cfg包含以下條目:

framework.name=touch
framework.version=2.1.0.447
framework.classpath=${framework.dir}/src
# This is the minimum required Sencha Cmd version:
framework.cmd.minver=3.0.0.141
# This is the current version of the Sencha Cmd at the time of this SDK release:
framework.cmd.version=3.0.0.250

它一直等待答案,所以它似乎是不兼容的問題,因為我使用sencha-touch 2.1.0生成了應用程序,並且它在/touch/cmd/sencha.cfg而不是/.sencha/app/上有了sencha.cfg 2.1.1應用程序中的sencha.cfg及其內容與2.1.1文件完全不同,沒有引用$ {app.dir},因此Sencha Cmd無法使用它。 知道如何構建2.1.0應用程序嗎? 我知道的一種方法是獲取舊版的sencha Cmd。

與第一個錯誤狀態一樣,請確保您位於應用程序文件夾中。 如果是,請檢查sencha.cfg文件中的類路徑是否正確。 因此,從app文件夾的根目錄打開sencha.cfg:

vim .sencha/app/sencha.cfg

這就是我的類路徑: app.classpath=${app.dir}/app.js,${app.dir}/app

我有同樣的問題,但錯誤出現,因為我沒有從sencha ExtJS庫目錄調用此命令,我從另一個目錄,我想創建應用程序調用。 因此,如果有人遇到同樣的問題,請從庫文件夾中調用此命令。 例如,我將ext4.2放在以下位置: C:\\wamp\\www\\Ext4.2在Windows操作系統中, C:\\wamp\\www\\Ext4.2>sencha generate app myapp myapp將為我創建myapp

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM