CouchDB not Working on Android Emulator -
i making android app uses couchdb database storage.i able run app on real device,but when run app on emulator force closes error messages as:-
04-23 10:37:12.810: d/dalvikvm(319): vfy: dead code 0x0005-0036 in lcom/couchbase/lite/storage/sqlitestorageenginefactory;.createstorageengine ()lcom/couchbase/lite/storage/sqlitestorageengine; 04-23 10:37:12.820: d/androidruntime(319): shutting down vm 04-23 10:37:12.820: w/dalvikvm(319): threadid=1: thread exiting uncaught exception (gro up=0x4001d800) 04-23 10:37:12.840: e/androidruntime(319): fatal exception: main 04-23 10:37:12.840: e/androidruntime(319): java.lang.noclassdeffounderror: java.util.serviceloader 0 4-23 10:37:12.840: e/androidruntime(319): @ com.couchbase.lite.storage.sqlitestorageenginefactory.createstorageengine(sqlitestorageenginefactory.java:25) 04-23 10:37:12.840: e/androidruntime(319): @ com.couchbase.lite.database.open(database.java:813) 04-23 10:37:12.840: e/androidruntime(319): @ com.couchbase.lite.manager.getdatabase(manager.java:206) 04-23 10:37:12.840: e/androidruntime(319): @ com.example.db.testdb.startcblite(testdb.java:65) 04-23 10:37:12.840: e/androidruntime(319): @ com.example.db.testdb.oncreate(testdb.java:47) 04-23 10:37:12.840: e/androidruntime(319): @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1047) 04-23 10:37:12.840: e/androidruntime(319): @ android.app.activitythread.performlaunchactivity(activitythread.java:2627) 04-23 10:37:12.840: e/androidruntime(319): @ android.app.activitythread.handlelaunchactivity(activitythread.java:2679) 04-23 10:37:12.840: e/androidruntime(319): @ android.app.activitythread.access$2300(activitythread.java:125) 04-23 10:37:12.840: e/androidruntime(319): @ android.app.activitythread$h.handlemessage(activitythread.java:2033) 04-23 10:37:12.840: e/androidruntime(319): @ android.os.handler.dispatchmessage(handler.java:99) 04-23 10:37:12.840: e/androidruntime(319): @ android.os.looper.loop(looper.java:123) 04-23 10:37:12.840: e/androidruntime(319): @ android.app.activitythread.main(activitythread.java:4627) 04-23 10:37:12.840: e/androidruntime(319): @ java.lang.reflect.method.invokenative(native method) 04-23 10:37:12.840: e/androidruntime(319): @ java.lang.reflect.method.invoke(method.java:521) 04-23 10:37:12.840: e/androidruntime(319): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:868) 04-23 10:37:12.840: e/androidruntime(319): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:626) 04-23 10:37:12.840: e/androidruntime(319): @ dalvik.system.nativestart.main(native method)
i new in couch db.can please me run app on android emulator..
it posted comment, yeah, answer serviceloader added in gingerbread (api level 9). try on newer android device/emulator.
Comments
Post a Comment