title: Flutter: Execution failed for task ':app:compileDebugKotlin'
body: <p>I tried running the default flutter app from <strong>flutter create</strong> on my android device but it throws me an error. Can someone help?</p>
  
  <blockquote>
    <p>Launching lib\main.dart on SM G610F in debug mode... Running Gradle
    task 'assembleDebug'...</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong: Execution failed for task ':app:compileDebugKotlin'.</p>
    
    <blockquote>
      <p>Could not resolve all artifacts for configuration ':app:debugCompileClasspath'. . . .</p>
    </blockquote></li>
    <li><p>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.</p></li>
    <li><p>Get more help at <a href="https://help.gradle.org" rel="noreferrer">https://help.gradle.org</a></p></li>
    </ul>
    
    <p>BUILD FAILED in 14s Finished with error: Gradle task assembleDebug
    failed with exit code 1</p>
  </blockquote>
  
  <p>This is my flutter doctor:</p>
  
  <blockquote>
    <p>[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows
    [Version 10.0.10586], locale en-US)
        • Flutter version 1.12.13+hotfix.5 at E:\flutter\flutter
        • Framework revision 27321ebbad (6 weeks ago), 2019-12-10 18:15:01 -0800
        • Engine revision 2994f7e1e6
        • Dart version 2.7.0</p>
    
    <p>[√] Android toolchain - develop for Android devices (Android SDK
    version 29.0.2)
        • Android SDK at C:\Users\208046\AppData\Local\Android\sdk
        • Android NDK location not configured (optional; useful for native profiling support)
        • Platform android-29, build-tools 29.0.2
        • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
        • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
        • All Android licenses accepted.</p>
    
    <p>[√] Android Studio (version 3.5)
        • Android Studio at C:\Program Files\Android\Android Studio
        • Flutter plugin version 42.1.1
        • Dart plugin version 191.8593
        • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)</p>
    
    <p>[√] VS Code, 64-bit edition (version 1.41.1)
        • VS Code at C:\Program Files\Microsoft VS Code
        • Flutter extension version 3.7.1</p>
    
    <p>[√] Connected device (1 available)
        • SM G610F • 33005566b2b5c3df • android-arm • Android 8.1.0 (API 27)</p>
    
    <p>• No issues found!</p>
  </blockquote>
  
  <p>edit: for my complete logs you can see here:</p>
  
  <p><a href="https://github.com/flutter/flutter/issues/49419" rel="noreferrer">Flutter github issues</a></p>