我在视图中使用Ext.util.JSON.encode,我在cmd编译时遇到错误

时间:2014-02-18 08:26:26

标签: cordova sencha-touch

在我的视图文件中:

var jsonSRdata=**Ext.util.JSON.encode**(jsondata); 

我在编译时遇到错误,如下所示。

[ERR] C2008: Requirement had no matching files (Ext.util.JSON) -- D:\wamp\www\xyz\app.js:17:87
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for D:\wamp\www\xyz\app.js::ClassRequire::Ext.util.JSON
[ERR]
[ERR] Total time: 14 seconds
[ERR] The following error occurred while executing this line:
D:\wamp\www\xyz\.sencha\app\build-impl.xml:367: The following error occurred while executing this line:
D:\wamp\www\xyz\.sencha\app\js-impl.xml:11: com.sencha.exceptions.ExBuild: Failed to find any files for D:\wamp\www\xyz\app.js::ClassRequire::Ext.util.JSON

1 个答案:

答案 0 :(得分:2)

我得到了答案:

use Ext.JSON.encode(jsondata); this insted of Ext.util.JSON.encode(jsondata);