[英]flutterwave creating webview issue in flutter project
Thanks in advance, i am facing this issue in my flutter project.在此先感谢,我在我的 flutter 项目中遇到了这个问题。 project received from my client.
从我的客户那里收到的项目。
my flutter version "2.8.1" latest and Dart "2.15.1"我的 flutter 版本“2.8.1”最新和 Dart“2.15.1”
java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.UnsharedNameTable$NameImpl)
at com.sun.tools.javac.util.Assert.error(Assert.java:133)
at com.sun.tools.javac.code.TypeAnnotations.annotationType(TypeAnnotations.java:231)
.........
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':webview_flutter_android: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 38s
Exception: Gradle task assembleDebug failed with exit code 1
and that is in my pubspec.yaml file.那在我的 pubspec.yaml 文件中。 these are all libs used in project
这些都是项目中使用的库
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.0
expandable: ^5.0.1
flutter_svg: ^1.0.0
get: ^4.6.1
http: ^0.13.4
intl: ^0.17.0
rflutter_alert: ^2.0.4
persistent_bottom_nav_bar: ^4.0.2
shared_preferences: ^2.0.11
flutter_paystack: ^1.0.4+1
flutterwave: ^1.0.1
This happen because of the webview_flutter package version issue.这是因为 webview_flutter package 版本问题。 I have downgrade the version and it worked.
我已经降级版本并且它有效。 Go to the pubspec.yaml and downgrade the version to 2.0.14
Go 到 pubspec.yaml 并将版本降级到 2.0.14
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.