title: Error in R8 Program type already present, when compiling the app
body: <p>I'm trying to compile the APK for Flutter, but I'm getting an error in r8. I already have other apps in Flutter, but I never had a problem compiling and making the tests with them. I realize that the problem is the WebView library because when I remove it from the pubspec the app compiles. But I can't discard the use of the WebView at the moment, it is important for the app. The strange thing is that I can debug the app on the device.</p>
  
  <p>I've tried several solutions like the ones below:</p>
  
  <pre><code>gradlew clean in project-flutter / android
  flutter clean
  </code></pre>
  
  <p>And the following steps:</p>
  
  <ul>
  <li>Updated to the latest version of webview dependency in the pub spec.</li>
  <li>I have already switched to the flutter master channel.</li>
  <li>Also performed the flutter upgrade but nothing solves the problem.</li>
  </ul>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>R8: Program type already present:
    io.flutter.plugins.webviewflutter.BuildConfig</p>
    
    <p>FAILURE: Build failed with an exception.</p>
  </blockquote>
  
  <p>What went wrong:</p>
  
  <blockquote>
    <p>Execution failed for task
    ':app:transformClassesAndResourcesWithR8ForRelease'.
    com.android.tools.r8.CompilationFailedException: Compilation failed to
    complete</p>
  </blockquote>
  
  <p>ref r8: <a href="https://developer.android.com/studio/build/shrink-code?hl=pt-br" rel="nofollow noreferrer">https://developer.android.com/studio/build/shrink-code?hl=pt-br</a></p>