Open danasorani opened 4 years ago
i have same issue , did you fix it ?
NO
is any other dependency is available? :(
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 .
and use the minimum SDK 19 for android device , then it work perfectly without compile error https://pub.dev/packages/flutter_blue
Same issue for me on the Sunmi V1s
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.
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
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!
Not working Any thing else?
not working....
楼主解决了吗,我现在也遇到了这个问题
does not work ...!
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.
What went wrong: Execution failed for task ':flutter_sunmi_printer:compileDebugJavaWithJavac'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 3s Exception: Gradle task assembleDebug failed with exit code 1