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 #1

Open fouriedr opened 4 years ago

fouriedr commented 4 years ago

Hi,

I added the package to my Flutter App and when I try and compile and run my app on a Sunmi V2 Pro I get the following error:

aidl E 07-08 21:57:25 12381 88761 aidl.cpp:581] refusing to generate code from aidl file defining parcelable

/build/flutter_sunmi_printer/generated/aidl_source_output_dir/debug/compileDebugAidl/out/woyou/aidlservice/jiuiv5/IWoyouService.java:527: error: reached end of file while parsing public java.lang.Strin ^ /build/flutter_sunmi_printer/generated/aidl_source_output_dir/debug/compileDebugAidl/out/woyou/aidlservice/jiuiv5/IWoyouService.java:528: error: reached end of file while parsing 2 errors

FAILURE: Build failed with an exception.

My app runs 100% fine without the flutter_sunmi_package, so adding it is definitely causing issues.

Here is the output from flutter doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale en-ZA)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✗] Xcode - develop for iOS and macOS ✗ Xcode installation is incomplete; a full installation is necessary for iOS development. Download at: https://developer.apple.com/xcode/download/ Or install Xcode via the App Store. Once installed, run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch ✗ CocoaPods not installed. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install: sudo gem install cocoapods [✓] Android Studio (version 4.0)

Let me know if you need any further information.

Regards, Daryll Fourie

danasorani commented 4 years ago

i have same issue , did you fix it ?

Hyla96 commented 3 years ago

@danasorani @fouriedr Did you guys manage to fix it?

fouriedr commented 3 years ago

@danasorani @fouriedr Did you guys manage to fix it?

No, unfortunately not.

Hyla96 commented 3 years ago

@danasorani @fouriedr Did you guys manage to fix it?

No, unfortunately not.

Actually I did, it was an easy fix,

https://github.com/andrey-ushakov/flutter_sunmi_printer/issues/2#issuecomment-727593612