devinim/flutter-zsdk

App crashes down after the print of the ticket.

Closed this issue · 1 comments

I'm using the plugin to print the bill of a list of products, the scanning of the device and the print of the bill works really good, but after the print the app crashes down, and I dont know why, I was debugging and I think the error is here:

image

My output of the error is this:
image

I hope you can help me to solve this issue, cause is the last step to publish the app.

@devinim Hope you can read this, and you can help me out, I really need it.

After hours of debuggin i got the solution of this plugin:

  1. first you have to download the plugin tou your PC and put in into your app file
    image

  2. then you have to import the fila with a path "./fluter-zsdk" in your puscpect.yaml
    image

  3. then in the plugin carpet go to android-src-main-flutersdkplugin.java
    image

  4. look the ZPLoverBluettooth function that is in the last lines of the code
    image

  5. comment the line of the result = "// result....
    image

run thae app.