flutter_sunmi_printer icon indicating copy to clipboard operation
flutter_sunmi_printer copied to clipboard

Compile Error Sunmi V2 , Android 7.1.1

Open danasorani opened this issue 4 years ago • 13 comments

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'.

Compilation failed; see the compiler error output for details.

  • 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

danasorani avatar Jul 27 '20 19:07 danasorani

i have same issue , did you fix it ?

JIJO-cs avatar Jul 28 '20 07:07 JIJO-cs

NO

danasorani avatar Jul 28 '20 07:07 danasorani

is any other dependency is available? :(

JIJO-cs avatar Jul 28 '20 07:07 JIJO-cs

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 avatar Jul 28 '20 08:07 danasorani

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

danasorani avatar Jul 28 '20 08:07 danasorani

Same issue for me on the Sunmi V1s

movieator avatar Aug 04 '20 12:08 movieator

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.

dprophete avatar Oct 02 '20 00:10 dprophete

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

Hyla96 avatar Nov 15 '20 16:11 Hyla96

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!

amuhaimin02 avatar Dec 15 '20 16:12 amuhaimin02

Not working Any thing else?

jigarfumakiya avatar Jan 08 '21 10:01 jigarfumakiya

not working....

ArjunNagraj avatar Jan 17 '21 09:01 ArjunNagraj

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

nanian avatar Jun 16 '21 09:06 nanian

does not work ...!

muchirajunior avatar Jan 05 '24 22:01 muchirajunior