I'm encountering an issue with my Flutter app and could really use some assistance. Here are the details:
Problem: I'm facing a build failure with the following error message:
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in D:home_page_design\build\flutter_inappwebview\outputs\mapping\release\missing_rules.txt.
ERROR: R8: Missing class android.window.BackEvent (referenced from: void io.flutter.view.FlutterView.startBackGesture(android.window.BackEvent) and 1 other context)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_inappwebview:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
> Compilation failed to complete
Additional Details:
This error occurs during the execution of assembleRelease in Gradle. I've tried running with --stacktrace but need help interpreting the output.
Steps I've Taken:
Updated Flutter and all dependencies. Cleaned and rebuilt the project. Verified all configurations are correct.
What I'm Seeking:
Any insights into what might be causing this issue? Suggestions on how to resolve or further diagnose the problem? Has anyone encountered a similar issue with Flutter InAppWebView and found a solution?