react-native - 我安装的软件包不起作用。(https://www.npmjs.com/package/rn-sunmi-inner-printer)
问题描述
安装此软件包后出现构建问题: https ://www.npmjs.com/package/rn-sunmi-inner-printer
任何人都知道为什么 java 在第 442 行停止?为什么编译失败?
> info Running jetifier to migrate libraries to AndroidX. You can
> disable it using "--no-jetifier" flag. Jetifier found 978 file(s) to
> forward-jetify. Using 4 workers... info Starting JS server... info
> Installing the app...
>
> > Configure project :rn-sunmi-inner-printer WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and
> 'api'. It will be removed soon. For more information see:
> http://d.android.com/r/tools/update-dependency-configurations.html
>
> > Task :rn-sunmi-inner-printer:compileDebugAidl
>
> > Task :rn-sunmi-inner-printer:compileDebugJavaWithJavac FAILED
>
> Deprecated Gradle features were used in this build, making it
> incompatible with Gradle 7.0. Use '--warning-mode all' to show the
> individual deprecation warnings. See
> https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
> 16 actionable tasks: 11 executed, 5 up-to-date aidl.exe E 07-17
> 09:57:43 2252 6336 aidl.cpp:581] refusing to generate code from aidl
> file defining parcelable
>
> C:\Users\User\Documents\Me\codes\AwesomeProject100\node_modules\rn-sunmi-inner-printer\android\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\aidlservice\jiuiv5\IWoyouService.java:441:
> error: reached end of file while parsing case TRANSACTION_getForce
> ^ C:\Users\User\Documents\Me\codes\AwesomeProject100\node_modules\rn-sunmi-inner-printer\android\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\aidlservice\jiuiv5\IWoyouService.java:442:
> error: reached end of file while parsing 2 errors
>
> FAILURE: Build failed with an exception.
>
> * What went wrong: Execution failed for task ':rn-sunmi-inner-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 1m 0s
解决方案
推荐阅读
- python - 无法分配具有形状和数据类型的数组
- ssh - 阅读:在执行 sshfs 时由对等方重置连接?
- c++ - 如何将带有尾随x的数字字符串转换为无符号数字列表
- flutter - Flutter - 如何创建圆形背景颜色?
- selenium - 如何从父 xpath 对子 xpath 应用条件
- ios - iOS系统原生分享方式指定app有音频或视频
- spring - 使用 Spring Retry 的顽固 StaleObjectStateException 问题
- mariadb - 使用 mariabackup 备份触发器、函数和存储过程
- html - 如何使用具有相同顺序的 flexbox 创建照片网格
- android - 如何使用 Xamarin 4 Shell Navigation 实现 Android 标准导航?