flutter_inappwebview
flutter_inappwebview copied to clipboard
Execution failed for task ':flutter_inappwebview_android:minifyReleaseWithR8'.
- [x] I have read the Getting Started section
- [x] I have already searched for the same problem
Environment
| Technology | Version |
|---|---|
| Flutter version | |
| Plugin version | |
| Android version | |
| iOS version | |
| macOS version | |
| Xcode version | |
| Google Chrome version |
Device information:
Description
Expected behavior:
Current behavior:
Steps to reproduce
- This
- Than that
- Then
Images
Stacktrace/Logcat
👋 @LScodeblack
NOTE: This comment is auto-generated.
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
Any luck with this?
flutter version: 3.22.2
Android: SDK version 35.0.0
Plugin version: 6.0.0
I have found that flutter run works fine, butflutter build apk and flutter build appbundle throws this error
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in ./build/flutter_inappwebview_android/outputs/mapping/release/missing_rules.txt.
ERROR: R8: Missing class android.window.BackEvent (referenced from: void io.flutter.embedding.android.FlutterActivity.startBackGesture(android.window.BackEvent) and 3 other contexts)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_inappwebview_android:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
> Compilation failed to complete
* 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 5s
Exact same problem here
Also i have this problem
I also have this problem
Same issue here.
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':flutter_inappwebview_android:minifyReleaseWithR8'.
A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable Compilation failed to complete
Same here.
Me too
I got around this by adding flutter_inappwebview_android to the dependency_overrides
dependency_overrides:
flutter_inappwebview_android:
git:
url: https://github.com/holzgeist/flutter_inappwebview
path: flutter_inappwebview_android
ref: d89b1d32638b49dfc58c4b7c84153be0c269d057
Me too
hi @ChrisElliotUK , any update on this? thank you
dependency_overrides: flutter_inappwebview_android: git: url: https://github.com/holzgeist/flutter_inappwebview path: flutter_inappwebview_android ref: d89b1d32638b49dfc58c4b7c84153be0c269d057 ..... it works for me
same error here, please provide a fix
@DurgeshSawantWYLD please provide the error with screenshot
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in ./build/flutter_inappwebview_android/outputs/mapping/release/missing_rules.txt. ERROR: R8: Missing class android.window.BackEvent (referenced from: void io.flutter.embedding.android.FlutterActivity.startBackGesture(android.window.BackEvent) and 3 other contexts)
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':flutter_inappwebview_android:minifyReleaseWithR8'.
A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable Compilation failed to complete
- 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 2m 9s
@DurgeshSawantWYLD please provide the pubspec.yaml
Same issue, Please fix it
@DurgeshSawantWYLD please provide the pubspec.yaml file or you can add this line after dependencies dependency_overrides: flutter_inappwebview_android: git: url: https://github.com/holzgeist/flutter_inappwebview path: flutter_inappwebview_android ref: https://github.com/pichillilorenzo/flutter_inappwebview/commit/d89b1d32638b49dfc58c4b7c84153be0c269d057
It resolves the issue. Thank you @ChrisElliotUK
I got around this by adding flutter_inappwebview_android to the
dependency_overridesdependency_overrides: flutter_inappwebview_android: git: url: https://github.com/holzgeist/flutter_inappwebview path: flutter_inappwebview_android ref: d89b1d32638b49dfc58c4b7c84153be0c269d057
Im facing same issue.
Me too
Same error
Me too facing same issue
I created a temporary package until this problem is resolved here. Maybe it will help some people: https://pub.dev/packages/webview_inapp
I am facing this issue too. But this fixed it for now. I hope the owner releases an update soon.
I got around this by adding flutter_inappwebview_android to the
dependency_overridesdependency_overrides: flutter_inappwebview_android: git: url: https://github.com/holzgeist/flutter_inappwebview path: flutter_inappwebview_android ref: d89b1d32638b49dfc58c4b7c84153be0c269d057
any update @pichillilorenzo ? this issue still persistence in flutter SDK 3.22.3. Please solve this issue and release a new version. Thanks.
Facing the same issue.
FYI - @pichillilorenzo
Same issue on Flutter 3.24.1
same here work fine with run but bruild release don't work