title: Flutter app doesn´t compile in android after adding dependency to pubspec.yml
body: <p>I have added the simple_permissions dependency to a flutter app i'm developing, but after adding it the app wont build with the next error:</p>
  
  <pre><code>Launching lib\main.dart on LG M700 in debug mode...
  FAILURE: Build failed with an exception.
  * What went wrong:
  Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
  &gt; com.android.build.api.transform.TransformException: Error while generating the main dex list.
  * 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
  
  </code></pre>
  
  <p>I already had this dependencies:</p>
  
  <pre><code>dependencies:
    flutter:
      sdk: flutter
    cupertino_icons: ^0.1.2
    path: ^1.6.2
    path_provider: ^0.5.0+1
    open_file: ^1.2.2+2
  </code></pre>
  
  <p>This compiles fine, but after adding <code>simple_permissions: ^0.1.9</code> the app wont compile. I have already tried some solutions that required changes in the <code>build.gradle</code> file but they havent worked either, like changing the sdk version from 27 to 28 and adding this piece of code:</p>
  
  <pre><code>project.configurations.all {
          resolutionStrategy.eachDependency { details -&gt;
              if (details.requested.group == 'com.android.support'
                      &amp;&amp; !details.requested.name.contains('multidex') ) {
                  details.useVersion "26.1.0"
              }
          }
      }
  }
  </code></pre>
  
  <p>As the build fails generating the dex list.</p>
  
  <p>I'm developing the app using vscode and running the app in my smartphone.</p>
  
  <p>I would be really grateful if you could help me with this.</p>