-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run app in Debug Working well, but build Release is crash! #5
Comments
@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.
I have requested permission for external storage, set the workPath and tried bunch of other things
Checking if you guys have some pointers. |
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 This contains more information on obfuscation in android https://developer.android.com/studio/build/shrink-code |
while running app in debug mode print works for me but when release apk or build apk getting error here |
I'm using Samsung Galaxy A7, Android 8.0.
I working print brother label QL_720NW.
Run App Debug Print working, but app build release is crash app!
The text was updated successfully, but these errors were encountered: