【发布时间】:2016-07-19 08:40:34
【问题描述】:
我在初始化 JSONSTORE 函数时遇到错误 java.lang.NoClassDefFoundError: com.worklight.jsonstore.util.JSONStoreUtil。
我正在使用 Mobilefirst Studio 7.1.0.00-20160323-1606
在 main.js 我有这个代码:
function wlCommonInit(){
var collectionCart = {
cartCellphones : {
searchFields: {id: 'integer', model: 'string', precio:'integer', caracteristicas:'string',image:'string',brand:'string'}
}
};
WL.JSONStore.init(collectionCart).then(function (collectionCart) {
// handle success - collection.people (people's collection)
}).fail(function (error) {
// handle failure
});
/************************JSON STORE Datos personales**********************************/
var collectionData = {
personalData : {
searchFields: {name: 'string', lastName:'string', photo:'string',telephone:'string',email:'string', datebirth: 'string',}
}
};
WL.JSONStore.init(collectionData).then(function (collectionData) {
// handle success - collection.people (people's collection)
}).fail(function (error) {
// handle failure
});
}
编辑
我在 android studio 项目中看到文件 .idea/libraries/libs.xml 未导入 jsonstore.jar
在文件夹 libs 中也存在 jsonstore.jar 文件
我不知道这是否是个问题。
【问题讨论】:
标签: javascript android ibm-mobilefirst jsonstore