我正在尝试使用以下Flutter插件(在Java中使用自定义代码):https://github.com/irpankusuma/SUNMI_AIDL_PRINTER
通过将其添加到pubspec.yaml:
dependencies:
sunmi_aidl_print:
git:
url: https://github.com/irpankusuma/SUNMI_AIDL_PRINTER.git
但是,运行时出现以下错误:
C:\apps\SUNMI_AIDL_PRINTER\personal_test\build\sunmi_aidl_print\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\ai
dlservice\jiuiv5\IWoyouService.java:285: error: reached end of file while parsing
data.
^
C:\apps\SUNMI_AIDL_PRINTER\personal_test\build\sunmi_aidl_print\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\ai
dlservice\jiuiv5\IWoyouService.java:285: error: not a statement
data.
^
C:\apps\SUNMI_AIDL_PRINTER\personal_test\build\sunmi_aidl_print\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\ai
dlservice\jiuiv5\IWoyouService.java:286: error: reached end of file while parsing
3 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sunmi_aidl_print:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.