【发布时间】:2021-04-08 05:30:14
【问题描述】:
e: C:\SRC_Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_paystack-1.0.2+1\android\src\main\kotlin\co\paystack\flutterpaystack\FlutterPaystackPlugin.kt: (33, 88): Unresolved reference: VERSION_NAME
e: C:\SRC_Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_paystack-1.0.2+1\android\src\main\kotlin\co\paystack\flutterpaystack\FlutterPaystackPlugin.kt: (37, 36): Unresolved reference: VERSION_CODE
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_paystack:compileDebugKotlin'.
> 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 get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 23s
Exception: Gradle task assembleDebug failed with exit code 1
【问题讨论】:
-
谢谢阿基夫!现在升级插件后。我可以在运行时看到空白屏幕错误日志:D/skia (10371): Shader 编译错误 D/skia (10371): ------------------------ - D/skia (10371): 错误: D/skia (10371): E/flutter (10371): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] 未处理的异常: MissingPluginException(找不到方法的实现getAll on channel plugins.flutter.io/shared_preferences) E/flutter (10371): D/skia (10371): Shader compilation erro –