Issue 1:
Reproduction steps:

$ flutter create delete_me
$ cd delete_me
$ flutter run

Got this:

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'.
> A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> 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
> 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.

'android' and ':app' are meaningless to me.

Failed to notify project evaluation listener. -- what?

You have not accepted the license agreements of the following SDK components:

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

I have no idea how to install these components or how accept the license agreement.

> Could not get unknown property 'compileDebugJavaWithJavac' for project ':app' of type org.gradle.api.Project. -- what?

* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

I tried running with --info and got:

$ flutter run --info
Could not find an option named "info".

Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.

Issue 2:
$ 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'.
> Failed to notify project evaluation listener.
> 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
> 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.<fn>
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.<fn>
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.<fn>.<fn>
package:stack_trace Chain.capture
package:flutter_tools/executable.dart 127 main.<fn>
package:flutter_tools/src/base/context.dart 76 AppContext._run
package:flutter_tools/src/base/context.dart 66 AppContext.runInZone.<fn>
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.<fn>
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