-1
I’m trying to compile apk to flutter, but am getting error in R8, I already have other applications in flutter never had problem to compile, making the tests realize that the problem is being the webview library, when I remove it from pubspec the app compiles like a wonder, however I can not rule out the use of webview at the moment, it is important for the app, the strange thing is that I can debug the app on the device.
I have tried several solutions like these below: gradlew clean in flutter/android design flutter clean update to the latest version of webview dependency on pub spec. already switched to flutter master channel and also executed flutter upgrade but nothing solves the problem.
follows the error:
R8: Program type already present: io.flutter.plugins.webviewflutter.BuildConfig
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithR8ForRelease'.
> com.android.tools.r8.CompilationFailedException: Compilation failed to complete
Tried the proposals listed on this site: https://github.com/flutter/flutter/issues/40830 ?
– Leonardo Paim
That was one of the first ones I made.
– Steve Rogers