quangtrung89
24 Oct 2012, 7:12 AM
Hello I have problem with command line sencha app build package
[INFO] Resolving your application dependencies (http://localhost/JalumbaDev/index.html)
[ERROR] ReferenceError: Can't find variable: ContactFindOptions
My application integrated PhoneGap. I can run the application with Ripple emulator fine. But after I run commandline to package the app to push the package files into Android project. I have error like that. I tried many ways but not successful.
These following code inside an controller inform error when I run command line to package the app.
onActivate: function() {
this.getContacts();
},
getContacts: function(){
var obj = new ContactFindOptions();
obj.filter = "";
obj.multiple = true;
navigator.contacts.find(
[ "displayName", "name" ], this.contactsSuccess,
this.failEd, obj);
},
contactsSuccess: function(contacts){
console.log(contacts);
},
failEd: function (msg) {
alert(msg);
},
Do you have any idea?
[INFO] Resolving your application dependencies (http://localhost/JalumbaDev/index.html)
[ERROR] ReferenceError: Can't find variable: ContactFindOptions
My application integrated PhoneGap. I can run the application with Ripple emulator fine. But after I run commandline to package the app to push the package files into Android project. I have error like that. I tried many ways but not successful.
These following code inside an controller inform error when I run command line to package the app.
onActivate: function() {
this.getContacts();
},
getContacts: function(){
var obj = new ContactFindOptions();
obj.filter = "";
obj.multiple = true;
navigator.contacts.find(
[ "displayName", "name" ], this.contactsSuccess,
this.failEd, obj);
},
contactsSuccess: function(contacts){
console.log(contacts);
},
failEd: function (msg) {
alert(msg);
},
Do you have any idea?