Coder Social home page Coder Social logo

Comments (2)

bhaveshbusa avatar bhaveshbusa commented on May 19, 2024

@Srinivas11789, @YonathanZetune , @nguyenthao1988

This is little bit off topic. I have exactly the same problem. I am connecting QL_820NWB via bluetooth.

Printing works in Debug mode but fails when trying to StartCommunication.

printer.setPrinterInfo(settings); printer.startCommunication();

I have requested permission for external storage, set the workPath and tried bunch of other things

F art : art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: fid == null F art : art/runtime/check_jni.cc:65] in call to GetIntField F art : art/runtime/check_jni.cc:65] from void com.brother.ptouch.sdk.JNIWrapper.initJNI(com.brother.ptouch.sdk.h)

Checking if you guys have some pointers.

from brother.

dan12321 avatar dan12321 commented on May 19, 2024

I ran into the same error, not with this repo but when using the brother SDK. The issue in my case was ProGuard obfuscating the classes/methods/properties in com.brother.ptouch.sdk so they no longer matched with the native libraries (paraphrasing top answer from https://stackoverflow.com/questions/38151653/proguard-error-a-jni-error-has-occured). The result is that when the SDK tries to use the libraries with JNI (Java Native Interface), it crashes.

So the solution for me was to add -keep class com.brother.ptouch.sdk.** { *; } to my ProGuard configuration.

This contains more information on obfuscation in android https://developer.android.com/studio/build/shrink-code

from brother.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.