android - Error in dropboxSync: findlibrary returned null -
error log:
03-25 09:46:59.022: i/com.dropbox.sync.android.coreaccountmanager(2217): prepared cache dir '/data/data/com.company.testapp/app_dropboxsynccache/my-dropxbox-key'. 03-25 09:46:59.022: w/dalvikvm(2217): exception ljava/lang/unsatisfiedlinkerror; thrown while initializing lcom/dropbox/sync/android/nativehttp; 03-25 09:46:59.022: w/dalvikvm(2217): exception ljava/lang/exceptionininitializererror; thrown while initializing lcom/dropbox/sync/android/nativelib; 03-25 09:46:59.034: d/updater(2217): java.lang.exceptionininitializererror 03-25 09:46:59.034: d/updater(2217): @ com.dropbox.sync.android.coreaccountmanager.initnativelib(coreaccountmanager.java:107) 03-25 09:46:59.034: d/updater(2217): @ com.dropbox.sync.android.coreaccountmanager.<init>(coreaccountmanager.java:87) 03-25 09:46:59.034: d/updater(2217): @ com.dropbox.sync.android.dbxaccountmanager.getinstance(dbxaccountmanager.java:112) 03-25 09:46:59.034: d/updater(2217): @ com.dropbox.sync.android.dbxaccountmanager.getinstance(dbxaccountmanager.java:99) 03-25 09:46:59.034: d/updater(2217): @ com.company.testapp.ui.loginactivity.notificationposted(loginactivity.java:1100) 03-25 09:46:59.034: d/updater(2217): @ com.company.testapp.io.notificationcenter.postnotification(notificationcenter.java:79) 03-25 09:46:59.034: d/updater(2217): @ com.company.testapp.io.updater.processfinishedoperation(updater.java:4044) 03-25 09:46:59.034: d/updater(2217): @ com.company.testapp.io.updater.operationsuccess(updater.java:3115) 03-25 09:46:59.034: d/updater(2217): @ com.company.testapp.io.updater.access$5(updater.java:3046) 03-25 09:46:59.034: d/updater(2217): @ com.company.testapp.io.updater$1.run(updater.java:2999) 03-25 09:46:59.034: d/updater(2217): @ android.os.handler.handlecallback(handler.java:615) 03-25 09:46:59.034: d/updater(2217): @ android.os.handler.dispatchmessage(handler.java:92) 03-25 09:46:59.034: d/updater(2217): @ android.os.looper.loop(looper.java:137) 03-25 09:46:59.034: d/updater(2217): @ android.app.activitythread.main(activitythread.java:4745) 03-25 09:46:59.034: d/updater(2217): @ java.lang.reflect.method.invokenative(native method) 03-25 09:46:59.034: d/updater(2217): @ java.lang.reflect.method.invoke(method.java:511) 03-25 09:46:59.034: d/updater(2217): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:786) 03-25 09:46:59.034: d/updater(2217): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:553) 03-25 09:46:59.034: d/updater(2217): @ dalvik.system.nativestart.main(native method) 03-25 09:46:59.034: d/updater(2217): caused by: java.lang.exceptionininitializererror 03-25 09:46:59.034: d/updater(2217): @ com.dropbox.sync.android.nativelib.<init>(nativelib.java:33) 03-25 09:46:59.034: d/updater(2217): @ com.dropbox.sync.android.nativelib.<clinit>(nativelib.java:11) 03-25 09:46:59.034: d/updater(2217): ... 19 more 03-25 09:46:59.034: d/updater(2217): caused by: java.lang.unsatisfiedlinkerror: couldnt load dropboxsync: findlibrary returned null 03-25 09:46:59.034: d/updater(2217): @ java.lang.runtime.loadlibrary(runtime.java:365) 03-25 09:46:59.034: d/updater(2217): @ java.lang.system.loadlibrary(system.java:535) 03-25 09:46:59.034: d/updater(2217): @ com.dropbox.sync.android.nativehttp.<clinit>(nativehttp.java:364) 03-25 09:46:59.034: d/updater(2217): ... 21 more
call function:
dbxaccountmanager mdbxacctmgr = dbxaccountmanager.getinstance(this.getapplicationcontext(), constants.dropbox_app_key, constants.dropbox_app_secret); //error here toolbox.setmdbxacctmgr(mdbxacctmgr);
i got library v13, dropboxsync-sdk in project, , permissions , stuff on manifest. idea this?
i got problem. didnt had armeabi libraries. adding libs folder fixed problem.
from d3mon 's answer: after adding .so libs folder: right click on project -> properties -> java build path -> "libraries" tab -> unfold "android private libraries" , edit "native library location". point "libs" folder.
Comments
Post a Comment