java - getting below exceptions when try to print bitmap from brother printer in android -


when try print bitmap brother printer ql-710w using net port in android facing below exceptions, if me on issue, grateful

07-23 18:11:16.752: e/androidruntime(15071): java.lang.unsatisfiedlinkerror: couldn't load createdata loader dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/com.splan.android-1.apk"],nativelibrarydirectories=[/data/app-lib/com.splan.android-1, /vendor/lib, /system/lib]]]: findlibrary returned null 07-23 18:11:16.752: e/androidruntime(15071): @ java.lang.runtime.loadlibrary(runtime.java:365) 07-23 18:11:16.752: e/androidruntime(15071): @ java.lang.system.loadlibrary(system.java:553) 07-23 18:11:16.752: e/androidruntime(15071): @ com.brother.ptouch.sdk.printermodel.(printermodel.java:30) 07-23 18:11:16.752: e/androidruntime(15071): @ com.brother.ptouch.sdk.communication.createprintermodel(communication.java:498) 07-23 18:11:16.752: e/androidruntime(15071): @ com.brother.ptouch.sdk.comnet$communicationthread.run(comnet.java:593)

i getting same error , found right here on site. i'm not sure if you're still looking answer else looking, might help!

the brother printer sdk comes libs folder contains armeabi folder in return contains 2 essential .so files. if you're running android studio (as am), gradle won't know how find these. can fix adding following lines build.gradle file:

task copyjnilibs(type: copy) {     'libs/armeabi'     'src/main/jnilibs/armeabi' }  tasks.withtype(javacompile) {     compiletask -> compiletask.dependson(copyjnilibs) }  clean.dependson 'cleancopyjnilibs' 

if moved .so files anywhere else adjust location on "from" line. keep in mind answer may change depending if gradle releases update.


Comments

Popular posts from this blog

c# - Store DBContext Log in other EF table -

Nuget pack csproj using nuspec -

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -