andrey-ushakov / flutter_sunmi_printer

Flutter plugin allows to print thermal receipts using Sunmi device with a built-in printer
BSD 3-Clause "New" or "Revised" License
16 stars 50 forks source link

Compile Error Sunmi V2 , Android 7.1.1 #2

Open danasorani opened 4 years ago

danasorani commented 4 years ago

when we are try to install on the Sunmi V2 Device , the compile get error

F:\Flutter_Apps\brew_crow\build\flutter_sunmi_printer\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\aidlservice\jiuiv5\IWoyouService.java:484: error: not a statement data.enforceInte ^ F:\Flutter_Apps\brew_crow\build\flutter_sunmi_printer\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\aidlservice\jiuiv5\IWoyouService.java:484: error: reached end of file while parsing data.enforceInte ^ F:\Flutter_Apps\brew_crow\build\flutter_sunmi_printer\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\aidlservice\jiuiv5\IWoyouService.java:485: error: reached end of file while parsing 3 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 3s Exception: Gradle task assembleDebug failed with exit code 1

JIJO-cs commented 4 years ago

i have same issue , did you fix it ?

danasorani commented 4 years ago

NO

JIJO-cs commented 4 years ago

is any other dependency is available? :(

danasorani commented 4 years ago

there is more than one plugin all of them have same error , except the flutter_blue: ^0.7.2 , but the printing is only support byte , you should create the image and then change to the byte later you can print and not working perfectly .

danasorani commented 4 years ago

and use the minimum SDK 19 for android device , then it work perfectly without compile error https://pub.dev/packages/flutter_blue

movieator commented 4 years ago

Same issue for me on the Sunmi V1s

dprophete commented 4 years ago

Same issue here. Tried to bump the min sdk version to 19 but still.

I get the error with a brand new flutter project, just adding flutter_sunmi_printer: ^0.2.1 to my pubspec.yaml. That's all. As simple as could be.

Hyla96 commented 3 years ago

I managed to solve the issue, basically there are some comments in Chinese that bugs everything. That's weird, considering it should be utf-8.

To fix this bug just delete all the comments: -> Go to the root of the package -> Ctrl + shift + r; -> Search for \/\*([\s\S]*?\*\/) with REGEX enabled; -> Delete everything -> Search for \/\/.* with REGEX enabled; -> Delete everything but the code in Android Manifest -> Have fun

amuhaimin02 commented 3 years ago

I managed to solve the issue, basically there are some comments in Chinese that bugs everything. That's weird, considering it should be utf-8.

To fix this bug just delete all the comments: -> Go to the root of the package -> Ctrl + shift + r; -> Search for \/\*([\s\S]*?\*\/) with REGEX enabled; -> Delete everything -> Search for \/\/.* with REGEX enabled; -> Delete everything but the code in Android Manifest -> Have fun

This works. Thank you!

jigarfumakiya commented 3 years ago

Not working Any thing else?

ArjunNagraj commented 3 years ago

not working....

nanian commented 3 years ago

楼主解决了吗,我现在也遇到了这个问题

muchirajunior commented 10 months ago

does not work ...!