Skip to content
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

Compile Error Sunmi V2 , Android 7.1.1 #2

Open
danasorani opened this issue Jul 27, 2020 · 13 comments
Open

Compile Error Sunmi V2 , Android 7.1.1 #2

danasorani opened this issue Jul 27, 2020 · 13 comments

Comments

@danasorani
Copy link

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

@JIJO-cs
Copy link

JIJO-cs commented Jul 28, 2020

i have same issue , did you fix it ?

@danasorani
Copy link
Author

NO

@JIJO-cs
Copy link

JIJO-cs commented Jul 28, 2020

is any other dependency is available? :(

@danasorani
Copy link
Author

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
Copy link
Author

danasorani commented Jul 28, 2020

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

@movieator
Copy link

Same issue for me on the Sunmi V1s

@dprophete
Copy link

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
Copy link

Hyla96 commented Nov 15, 2020

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 Hyla96 mentioned this issue Nov 16, 2020
@amuhaimin02
Copy link

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
Copy link

Not working Any thing else?

@ArjunNagraj
Copy link

not working....

@nanian
Copy link

nanian commented Jun 16, 2021

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

@muchirajunior
Copy link

does not work ...!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants