cordova - Ionic app fails to run with error options must be an object -


i have ionic app fails following error. idea how resolve or tips how debug? (cordova 5.1.1 + ionic 1.4.3)

i/chromium(13497): [info:console(20434)] "error: "options" must object! i/chromium(13497): @ object.n._ (file:///android_asset/www/lib/js-data.min.js:11:26882) i/chromium(13497): @ file:///android_asset/www/lib/js-data.min.js:10:23334 i/chromium(13497): @ new (file:///android_asset/www/lib/js-data-angular.min.js:10:1479) i/chromium(13497): @ g.d [as findall] (file:///android_asset/www/lib/js-data.min.js:10:23262) i/chromium(13497): @ function._this.(anonymous function).defineresource.def.(anonymous function) (file:///android_asset/www/lib/js-data.min.js:11:6366) i/chromium(13497): @ f.service.findall (file:///android_asset/www/js/application.js:4795:24) i/chromium(13497): @ loadtasks (file:///android_asset/www/js/application.js:2314:19) i/chromium(13497): @ file:///android_asset/www/js/application.js:2375:18 i/chromium(13497): @ processqueue (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:22016:27) i/chromium(13497): @ file:///android_asset/www/lib/ionic/js/ionic.bundle.js:22032:27", source: file:///android_asset/www/lib/ionic/js/ionic.bundle.js (20434) 

it's problem cordova-android versioning. since cordova 5.1.1 default cordova-android 4.0.2, defaults android-22. need previous version.

try this:

cordova platform remove android cordova platform add android@3.7.2 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -