<p dir="auto">Reproduction steps:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter create delete_me
$ cd delete_me
$ flutter run"><pre class="notranslate"><code class="notranslate">$ flutter create delete_me
$ cd delete_me
$ flutter run
</code></pre></div>
<p dir="auto">Got this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on Nexus 7 in debug mode...
Running 'gradle assembleDebug'...                         
Checking the license for package Android SDK Build-Tools 25.0.2 in /usr/local/google/home/johnmccutchan/Android/Sdk/licenses
Warning: License for package Android SDK Build-Tools 25.0.2 not accepted.
Checking the license for package Android SDK Platform 25 in /usr/local/google/home/johnmccutchan/Android/Sdk/licenses
Warning: License for package Android SDK Platform 25 not accepted.

FAILURE: Build failed with an exception.

* Where:
Build file '/usr/local/google/home/johnmccutchan/delete_me/android/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
&gt; A problem occurred configuring project ':app'.
   &gt; Failed to notify project evaluation listener.
      &gt; You have not accepted the license agreements of the following SDK components:
        [Android SDK Build-Tools 25.0.2, Android SDK Platform 25].
        Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
        Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
      &gt; Could not get unknown property 'compileDebugJavaWithJavac' for project ':app' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output."><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on Nexus 7 in debug mode...
Running 'gradle assembleDebug'...                         
Checking the license for package Android SDK Build-Tools 25.0.2 in /usr/local/google/home/johnmccutchan/Android/Sdk/licenses
Warning: License for package Android SDK Build-Tools 25.0.2 not accepted.
Checking the license for package Android SDK Platform 25 in /usr/local/google/home/johnmccutchan/Android/Sdk/licenses
Warning: License for package Android SDK Platform 25 not accepted.

FAILURE: Build failed with an exception.

* Where:
Build file '/usr/local/google/home/johnmccutchan/delete_me/android/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
&gt; A problem occurred configuring project ':app'.
   &gt; Failed to notify project evaluation listener.
      &gt; You have not accepted the license agreements of the following SDK components:
        [Android SDK Build-Tools 25.0.2, Android SDK Platform 25].
        Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
        Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
      &gt; Could not get unknown property 'compileDebugJavaWithJavac' for project ':app' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
</code></pre></div>
<ol dir="auto">
<li>'android' and ':app' are meaningless to me.</li>
<li>Failed to notify project evaluation listener. -- what?</li>
<li>You have not accepted the license agreements of the following SDK components:</li>
</ol>
<p dir="auto"><code class="notranslate">Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html</code></p>
<p dir="auto">I have no idea how to install these components or how accept the license agreement.</p>
<ol start="4" dir="auto">
<li>
<p dir="auto"><code class="notranslate">&gt; Could not get unknown property 'compileDebugJavaWithJavac' for project ':app' of type org.gradle.api.Project.</code> -- what?</p>
</li>
<li>
<p dir="auto"><code class="notranslate">* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</code></p>
</li>
</ol>
<p dir="auto">I tried running with <code class="notranslate">--info</code> and got:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter run --info
Could not find an option named &quot;info&quot;.

Run 'flutter -h' (or 'flutter &lt;command&gt; -h') for available flutter commands and options."><pre class="notranslate"><code class="notranslate">$ flutter run --info
Could not find an option named "info".

Run 'flutter -h' (or 'flutter &lt;command&gt; -h') for available flutter commands and options.
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter run
Launching lib/main.dart on Nexus 6 in debug mode...
Running 'gradle assembleDebug'...                         
Checking the license for package Android SDK Build-Tools 24.0.1 in /usr/local/google/home/ianh/Android/Sdk/licenses
Warning: License for package Android SDK Build-Tools 24.0.1 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
&gt; Failed to notify project evaluation listener.
   &gt; You have not accepted the license agreements of the following SDK components:
     [Android SDK Build-Tools 24.0.1].
     Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
     Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
   &gt; Could not get unknown property 'compileDebugJavaWithJavac' for project ':app' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Exception from flutter run: Exception: Gradle build failed: 1
package:flutter_tools/src/base/common.dart 29                     throwToolExit
package:flutter_tools/src/android/gradle.dart 183                 buildGradleProjectV2
package:flutter_tools/src/android/gradle.dart 133                 buildGradleProject
package:flutter_tools/src/commands/build_apk.dart 592             buildAndroidWithGradle
package:flutter_tools/src/commands/build_apk.dart 603             buildApk
package:flutter_tools/src/android/android_device.dart 291         AndroidDevice.startApp
package:flutter_tools/src/run_hot.dart 165                        HotRunner._run
package:flutter_tools/src/run_hot.dart 77                         HotRunner.run.&lt;fn&gt;
package:stack_trace                                               Chain.capture
package:flutter_tools/src/run_hot.dart 76                         HotRunner.run
package:flutter_tools/src/commands/run.dart 284                   RunCommand.runCommand
package:flutter_tools/src/runner/flutter_command.dart 148         FlutterCommand.verifyThenRunCommand
package:flutter_tools/src/commands/run.dart 199                   RunCommand.verifyThenRunCommand
package:flutter_tools/src/runner/flutter_command.dart 119         FlutterCommand.run
package:args/command_runner.dart 194                              CommandRunner.runCommand
package:flutter_tools/src/runner/flutter_command_runner.dart 224  FlutterCommandRunner.runCommand
package:args/command_runner.dart 109                              CommandRunner.run.&lt;fn&gt;
dart:async                                                        Future.Future.sync
package:args/command_runner.dart 109                              CommandRunner.run
package:flutter_tools/src/runner/flutter_command_runner.dart 151  FlutterCommandRunner.run
package:flutter_tools/executable.dart 128                         main.&lt;fn&gt;.&lt;fn&gt;
package:stack_trace                                               Chain.capture
package:flutter_tools/executable.dart 127                         main.&lt;fn&gt;
package:flutter_tools/src/base/context.dart 76                    AppContext._run
package:flutter_tools/src/base/context.dart 66                    AppContext.runInZone.&lt;fn&gt;
dart:async                                                        runZoned
package:flutter_tools/src/base/context.dart 65                    AppContext.runInZone
package:flutter_tools/executable.dart 98                          main
../../packages/flutter_tools/bin/flutter_tools.dart 8             main
===== asynchronous gap ===========================
dart:async                                                        _Completer.completeError
package:flutter_tools/src/android/gradle.dart 196                 buildGradleProjectV2
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/android/gradle.dart                     buildGradleProjectV2
package:flutter_tools/src/android/gradle.dart 133                 buildGradleProject
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/android/gradle.dart                     buildGradleProject
package:flutter_tools/src/commands/build_apk.dart 592             buildAndroidWithGradle
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:flutter_tools/src/commands/build_apk.dart                 buildAndroidWithGradle
package:flutter_tools/src/commands/build_apk.dart 603             buildApk
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:flutter_tools/src/commands/build_apk.dart                 buildApk
package:flutter_tools/src/android/android_device.dart 291         AndroidDevice.startApp
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/android/android_device.dart             AndroidDevice.startApp
package:flutter_tools/src/run_hot.dart 165                        HotRunner._run
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/run_hot.dart                            HotRunner._run
package:flutter_tools/src/run_hot.dart 77                         HotRunner.run.&lt;fn&gt;
package:stack_trace                                               Chain.capture
package:flutter_tools/src/run_hot.dart 76                         HotRunner.run
package:flutter_tools/src/commands/run.dart 284                   RunCommand.runCommand
"><pre class="notranslate"><code class="notranslate">$ flutter run
Launching lib/main.dart on Nexus 6 in debug mode...
Running 'gradle assembleDebug'...                         
Checking the license for package Android SDK Build-Tools 24.0.1 in /usr/local/google/home/ianh/Android/Sdk/licenses
Warning: License for package Android SDK Build-Tools 24.0.1 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
&gt; Failed to notify project evaluation listener.
   &gt; You have not accepted the license agreements of the following SDK components:
     [Android SDK Build-Tools 24.0.1].
     Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
     Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
   &gt; Could not get unknown property 'compileDebugJavaWithJavac' for project ':app' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Exception from flutter run: Exception: Gradle build failed: 1
package:flutter_tools/src/base/common.dart 29                     throwToolExit
package:flutter_tools/src/android/gradle.dart 183                 buildGradleProjectV2
package:flutter_tools/src/android/gradle.dart 133                 buildGradleProject
package:flutter_tools/src/commands/build_apk.dart 592             buildAndroidWithGradle
package:flutter_tools/src/commands/build_apk.dart 603             buildApk
package:flutter_tools/src/android/android_device.dart 291         AndroidDevice.startApp
package:flutter_tools/src/run_hot.dart 165                        HotRunner._run
package:flutter_tools/src/run_hot.dart 77                         HotRunner.run.&lt;fn&gt;
package:stack_trace                                               Chain.capture
package:flutter_tools/src/run_hot.dart 76                         HotRunner.run
package:flutter_tools/src/commands/run.dart 284                   RunCommand.runCommand
package:flutter_tools/src/runner/flutter_command.dart 148         FlutterCommand.verifyThenRunCommand
package:flutter_tools/src/commands/run.dart 199                   RunCommand.verifyThenRunCommand
package:flutter_tools/src/runner/flutter_command.dart 119         FlutterCommand.run
package:args/command_runner.dart 194                              CommandRunner.runCommand
package:flutter_tools/src/runner/flutter_command_runner.dart 224  FlutterCommandRunner.runCommand
package:args/command_runner.dart 109                              CommandRunner.run.&lt;fn&gt;
dart:async                                                        Future.Future.sync
package:args/command_runner.dart 109                              CommandRunner.run
package:flutter_tools/src/runner/flutter_command_runner.dart 151  FlutterCommandRunner.run
package:flutter_tools/executable.dart 128                         main.&lt;fn&gt;.&lt;fn&gt;
package:stack_trace                                               Chain.capture
package:flutter_tools/executable.dart 127                         main.&lt;fn&gt;
package:flutter_tools/src/base/context.dart 76                    AppContext._run
package:flutter_tools/src/base/context.dart 66                    AppContext.runInZone.&lt;fn&gt;
dart:async                                                        runZoned
package:flutter_tools/src/base/context.dart 65                    AppContext.runInZone
package:flutter_tools/executable.dart 98                          main
../../packages/flutter_tools/bin/flutter_tools.dart 8             main
===== asynchronous gap ===========================
dart:async                                                        _Completer.completeError
package:flutter_tools/src/android/gradle.dart 196                 buildGradleProjectV2
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/android/gradle.dart                     buildGradleProjectV2
package:flutter_tools/src/android/gradle.dart 133                 buildGradleProject
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/android/gradle.dart                     buildGradleProject
package:flutter_tools/src/commands/build_apk.dart 592             buildAndroidWithGradle
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:flutter_tools/src/commands/build_apk.dart                 buildAndroidWithGradle
package:flutter_tools/src/commands/build_apk.dart 603             buildApk
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:flutter_tools/src/commands/build_apk.dart                 buildApk
package:flutter_tools/src/android/android_device.dart 291         AndroidDevice.startApp
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/android/android_device.dart             AndroidDevice.startApp
package:flutter_tools/src/run_hot.dart 165                        HotRunner._run
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/run_hot.dart                            HotRunner._run
package:flutter_tools/src/run_hot.dart 77                         HotRunner.run.&lt;fn&gt;
package:stack_trace                                               Chain.capture
package:flutter_tools/src/run_hot.dart 76                         HotRunner.run
package:flutter_tools/src/commands/run.dart 284                   RunCommand.runCommand

</code></pre></div>