Flutter使用fluwx后,打包android 编译报以下错误。
Running Gradle task 'assembleRelease'...
e: /Users/ado/my/dev_tools/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluwx_no_pay-2.5.2/android/src/main/kotlin/com/jarvan/fluwx/handlers/FluwxRequestHandler.kt: (54, 52): Expecting an argument
FAILURE: Build failed with an exception.
* What went wrong:
* Execution failed for task ':fluwx_no_pay:compileReleaseKotlin'.
> Compilation error. See log for more 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
Flutter项目集成fluwx编译报错及解决方案

在尝试将fluwx库集成到Flutter应用并打包Android时遇到编译错误,错误信息提及缺少参数。解决方法是更新android/build.gradle文件中ext.kotlin_version的值为1.4.20,重新编译后问题解决。
最低0.47元/天 解锁文章
3130

被折叠的 条评论
为什么被折叠?



