Issue 1:
The application was created from scratch and untouched. I am able to detect the 3 devices I tried with (1 emulator and 2 different model physical devices). All had the same error when attempting to run. Please see the details below:

$ flutter doctor -v

[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.14393], locale en-US)
• Flutter version 0.5.1 at C:\flutter
• Framework revision c7ea3ca377 (8 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760

Error retrieving device properties for ro.product.cpu.abi:

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\khewitt\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.

[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[!] VS Code, 32-bit edition (version 1.24.1)
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected devices (1 available)
• SM J111M • 4200552adea38200 • android-arm • Android null (API null)

! Doctor found issues in 1 category.

This happens when i try to run

$ flutter run -v

[ +54 ms] [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +162 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] [C:\flutter\] git rev-parse --abbrev-ref HEAD
[ +96 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] [C:\flutter\] git ls-remote --get-url origin
[ +97 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] [C:\flutter\] git log -n 1 --pretty=format:%H
[ +104 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] c7ea3ca377e909469c68f2ab878a5bc53d3cf66b
[ ] [C:\flutter\] git log -n 1 --pretty=format:%ar
[ +111 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 8 weeks ago
[ ] [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +118 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v0.5.1-0-gc7ea3ca37
[ +583 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb devices -l
[+4183 ms] Exit code 0 from: C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ ] List of devices attached
4200552adea38200 device product:j1acevelteub model:SM_J111M device:j1acevelte transport_id:1
[ +271 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 shell getprop
[ +191 ms] Error retrieving device properties for ro.product.cpu.abi:
[ +2 ms] ro.hardware = null
[ ] ro.build.characteristics = null
[ +792 ms] Launching lib/main.dart on SM J111M in debug mode...
[ +8 ms] Initializing gradle...
[ ] Using gradle from C:\Development\Flutter\jcoapp\android\gradlew.bat.
[ +241 ms] C:\Development\Flutter\jcoapp\android\gradlew.bat -v
[ +800 ms]
------------------------------------------------------------
Gradle 4.1
------------------------------------------------------------

Build time: 2017-08-07 14:38:48 UTC
Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2

Groovy: 2.4.11
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b02)
OS: Windows 10 10.0 amd64
[ +2 ms] Resolving dependencies...
[ ] [android\] C:\Development\Flutter\jcoapp\android\gradlew.bat app:properties
[+2250 ms] :app:properties

------------------------------------------------------------
Project :app
------------------------------------------------------------

allprojects: [project ':app']
android: com.android.build.gradle.AppExtension_Decorated@21958ff4
androidDependencies: task ':app:androidDependencies'
ant: org.gradle.api.internal.project.DefaultAntBuilder@1d22313b
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@47cfa0a0
archivesBaseName: app
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@5facd275
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
assembleAndroidTest: task ':app:assembleAndroidTest'
assembleDebug: task ':app:assembleDebug'
assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
assembleProfile: task ':app:assembleProfile'
assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
assembleRelease: task ':app:assembleRelease'
assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@52cb0c5b
buildDependents: task ':app:buildDependents'
buildDir: C:\Development\Flutter\jcoapp\build\app
buildFile: C:\Development\Flutter\jcoapp\android\app\build.gradle
buildNeeded: task ':app:buildNeeded'
buildOutputs: BaseVariantOutput container
buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@5eec44d0
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@641c350d
bundleAppClassesDebug: task ':app:bundleAppClassesDebug'
bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest'
bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest'
bundleAppClassesProfile: task ':app:bundleAppClassesProfile'
bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest'
bundleAppClassesRelease: task ':app:bundleAppClassesRelease'
bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest'
check: task ':app:check'
checkDebugManifest: task ':app:checkDebugManifest'
checkProfileManifest: task ':app:checkProfileManifest'
checkReleaseManifest: task ':app:checkReleaseManifest'
childProjects: {}
class: class org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@5d9a6c81
cleanBuildCache: task ':app:cleanBuildCache'
compileDebugAidl: task ':app:compileDebugAidl'
compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
compileDebugNdk: task ':app:compileDebugNdk'
compileDebugRenderscript: task ':app:compileDebugRenderscript'
compileDebugShaders: task ':app:compileDebugShaders'
compileDebugSources: task ':app:compileDebugSources'
compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
compileLint: task ':app:compileLint'
compileProfileAidl: task ':app:compileProfileAidl'
compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
compileProfileNdk: task ':app:compileProfileNdk'
compileProfileRenderscript: task ':app:compileProfileRenderscript'
compileProfileShaders: task ':app:compileProfileShaders'
compileProfileSources: task ':app:compileProfileSources'
compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
compileReleaseAidl: task ':app:compileReleaseAidl'
compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
compileReleaseNdk: task ':app:compileReleaseNdk'
compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
compileReleaseShaders: task ':app:compileReleaseShaders'
compileReleaseSources: task ':app:compileReleaseSources'
compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
components: SoftwareComponentInternal set
configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@57391abd
configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@6b4f1e4e
configurations: configuration container
connectedAndroidTest: task ':app:connectedAndroidTest'
connectedCheck: task ':app:connectedCheck'
connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
consumeConfigAttr: task ':app:consumeConfigAttr'
convention: org.gradle.api.internal.plugins.DefaultConvention@6efeea77
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@608e6d4d
defaultTasks: []
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@7ffd7f13
dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@6cd3b3cc
depth: 1
description: null
deviceAndroidTest: task ':app:deviceAndroidTest'
deviceCheck: task ':app:deviceCheck'
displayName: project ':app'
distsDir: C:\Development\Flutter\jcoapp\build\app\distributions
distsDirName: distributions
docsDir: C:\Development\Flutter\jcoapp\build\app\docs
docsDirName: docs
ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@75674173
extensions: org.gradle.api.internal.plugins.DefaultConvention@6efeea77
extractProguardFiles: task ':app:extractProguardFiles'
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@6690ae97
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@728140b1
flutter: FlutterExtension_Decorated@33dd0fe
flutterBuildDebug: task ':app:flutterBuildDebug'
flutterBuildProfile: task ':app:flutterBuildProfile'
flutterBuildRelease: task ':app:flutterBuildRelease'
flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
generateDebugAssets: task ':app:generateDebugAssets'
generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
generateDebugResValues: task ':app:generateDebugResValues'
generateDebugResources: task ':app:generateDebugResources'
generateDebugSources: task ':app:generateDebugSources'
generateProfileAssets: task ':app:generateProfileAssets'
generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
generateProfileResValues: task ':app:generateProfileResValues'
generateProfileResources: task ':app:generateProfileResources'
generateProfileSources: task ':app:generateProfileSources'
generateReleaseAssets: task ':app:generateReleaseAssets'
generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
generateReleaseResValues: task ':app:generateReleaseResValues'
generateReleaseResources: task ':app:generateReleaseResources'
generateReleaseSources: task ':app:generateReleaseSources'
gradle: build 'android'
group: android
identityPath: :app
inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@4c1e7533
installDebug: task ':app:installDebug'
installDebugAndroidTest: task ':app:installDebugAndroidTest'
installProfile: task ':app:installProfile'
installRelease: task ':app:installRelease'
javaPreCompileDebug: task ':app:javaPreCompileDebug'
javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
javaPreCompileProfile: task ':app:javaPreCompileProfile'
javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
javaPreCompileRelease: task ':app:javaPreCompileRelease'
javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
layout: org.gradle.api.internal.file.DefaultProjectLayout@2f199e31
libsDir: C:\Development\Flutter\jcoapp\build\app\libs
libsDirName: libs
lint: task ':app:lint'
lintDebug: task ':app:lintDebug'
lintProfile: task ':app:lintProfile'
lintRelease: task ':app:lintRelease'
lintVitalRelease: task ':app:lintVitalRelease'
logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@4cb7bdec
logging: org.gradle.internal.logging.services.DefaultLoggingManager@57e5d7ab
mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
mergeDebugResources: task ':app:mergeDebugResources'
mergeDebugShaders: task ':app:mergeDebugShaders'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
mergeProfileResources: task ':app:mergeProfileResources'
mergeProfileShaders: task ':app:mergeProfileShaders'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
mergeReleaseResources: task ':app:mergeReleaseResources'
mergeReleaseShaders: task ':app:mergeReleaseShaders'
mockableAndroidJar: task ':app:mockableAndroidJar'
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@3a324789
modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@27e33fe6
module: org.gradle.api.internal.artifacts.ProjectBackedModule@5ba7adb2
name: app
normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@5ba1a11
objects: org.gradle.api.internal.model.DefaultObjectFactory@64734f68
org.gradle.jvmargs: -Xmx1536M
packageDebug: task ':app:packageDebug'
packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
packageProfile: task ':app:packageProfile'
packageRelease: task ':app:packageRelease'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
platformAttrExtractor: task ':app:platformAttrExtractor'
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@66b1e481
plugins: [org.gradle.api.plugins.HelpTasksPlugin@7c64ac5f, com.android.build.gradle.api.AndroidBasePlugin@1d64ddcc, org.gradle.language.base.plugins.LifecycleBasePlugin@782c5efe, org.gradle.api.plugins.BasePlugin@268748a7, org.gradle.api.plugins.ReportingBasePlugin@25c29f73, org.gradle.platform.base.plugins.ComponentBasePlugin@2e52ec7, org.gradle.language.base.plugins.LanguageBasePlugin@33ed00ef, org.gradle.platform.base.plugins.BinaryBasePlugin@206f1c5e, org.gradle.api.plugins.JavaBasePlugin@54cd963c, com.android.build.gradle.internal.coverage.JacocoPlugin@47e68268, com.android.build.gradle.AppPlugin@b9eafb0, FlutterPlugin@53fdf091]
preBuild: task ':app:preBuild'
preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
preDebugBuild: task ':app:preDebugBuild'
preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
preProfileBuild: task ':app:preProfileBuild'
preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
preReleaseBuild: task ':app:preReleaseBuild'
preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
prepareLintJar: task ':app:prepareLintJar'
processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
processDebugJavaRes: task ':app:processDebugJavaRes'
processDebugManifest: task ':app:processDebugManifest'
processDebugResources: task ':app:processDebugResources'
processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
processOperations: org.gradle.api.internal.file.DefaultFileOperations@6690ae97
processProfileJavaRes: task ':app:processProfileJavaRes'
processProfileManifest: task ':app:processProfileManifest'
processProfileResources: task ':app:processProfileResources'
processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
processReleaseJavaRes: task ':app:processReleaseJavaRes'
processReleaseManifest: task ':app:processReleaseManifest'
processReleaseResources: task ':app:processReleaseResources'
processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
project: project ':app'
projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@1f902f73
projectDir: C:\Development\Flutter\jcoapp\android\app
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@37363d07
projectPath: :app
projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@6289c362
properties: {...}
providers: org.gradle.api.internal.provider.DefaultProviderFactory@5fd2bed3
reporting: org.gradle.api.reporting.ReportingExtension_Decorated@b75a65e
reportsDir: C:\Development\Flutter\jcoapp\build\app\reports
repositories: repository container
resolveConfigAttr: task ':app:resolveConfigAttr'
resources: org.gradle.api.internal.resources.DefaultResourceHandler@1580ebf4
rootDir: C:\Development\Flutter\jcoapp\android
rootProject: root project 'android'
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@13d82246
scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@3fe6618c
serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@19876778
services: ProjectScopeServices
signingReport: task ':app:signingReport'
sourceCompatibility: 1.8
sourceSets: SourceSet container
splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest'
splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@57e5d7ab
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
test: task ':app:test'
testDebugUnitTest: task ':app:testDebugUnitTest'
testProfileUnitTest: task ':app:testProfileUnitTest'
testReleaseUnitTest: task ':app:testReleaseUnitTest'
testReportDir: C:\Development\Flutter\jcoapp\build\app\reports\tests
testReportDirName: tests
testResultsDir: C:\Development\Flutter\jcoapp\build\app\test-results
testResultsDirName: test-results
transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease'
transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease'
transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
uninstallAll: task ':app:uninstallAll'
uninstallDebug: task ':app:uninstallDebug'
uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
uninstallProfile: task ':app:uninstallProfile'
uninstallRelease: task ':app:uninstallRelease'
validateSigningDebug: task ':app:validateSigningDebug'
validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
validateSigningProfile: task ':app:validateSigningProfile'
validateSigningRelease: task ':app:validateSigningRelease'
version: unspecified
writeDebugApplicationId: task ':app:writeDebugApplicationId'
writeProfileApplicationId: task ':app:writeProfileApplicationId'
writeReleaseApplicationId: task ':app:writeReleaseApplicationId'

BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
[ +54 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time -t 1
[ +209 ms] Exit code 0 from: C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time -t 1
[ ] --------- beginning of system
07-21 13:30:05.225 D/SSRM:n ( 724): SIOP:: AP = 340, CUR = 366, LCD = 0
[ +2 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time
[ +9 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb version
[ +147 ms] Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
Installed as C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb.EXE
[ +5 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb start-server
[ +168 ms] Unexpected failure from adb: Invalid argument(s): The source must not be null
[ ] Error launching application on SM J111M.
[ +18 ms] "flutter run" took 9,762ms.

#0 throwToolExit (package:flutter_tools/src/base/common.dart:28)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:401)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:344)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:279)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#5 _rootRun (dart:async/zone.dart:1126)
#6 _CustomZone.run (dart:async/zone.dart:1023)
#7 runZoned (dart:async/zone.dart:1501)
#8 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#9 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270)
#10 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#11 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:309)
<asynchronous suspension>
#12 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#13 _rootRun (dart:async/zone.dart:1126)
#14 _CustomZone.run (dart:async/zone.dart:1023)
#15 runZoned (dart:async/zone.dart:1501)
#16 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#17 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265)
<asynchronous suspension>
#18 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#19 new Future.sync (dart:async/future.dart:222)
#20 CommandRunner.run (package:args/command_runner.dart:109)
#21 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174)
#22 run.<anonymous closure> (package:flutter_tools/runner.dart:59)
<asynchronous suspension>
#23 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#24 _rootRun (dart:async/zone.dart:1126)
#25 _CustomZone.run (dart:async/zone.dart:1023)
#26 runZoned (dart:async/zone.dart:1501)
#27 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#28 runInContext (package:flutter_tools/src/context_runner.dart:43)
<asynchronous suspension>
#29 run (package:flutter_tools/runner.dart:50)
#30 main (package:flutter_tools/executable.dart:49)
<asynchronous suspension>
#31 main (file:///E:/b/build/slave/Windows_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#32 _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#33 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

Issue 2:
It looks like 'flutter run --release --preview-dart-2' performs kernel compilation twice, which is a waste of build time. It becomes more important as we're going to do more time-consuming global transformations during AOT compilation.

Steps to Reproduce

Add

_outputStream.writeln("Kernel compilation: $filename");

after the line

_outputStream.writeln('result $boundaryKey');

into engine/src/flutter/frontend_server/lib/server.dart.

Build local engine

flutter/tools/gn --android --runtime-mode=release --goma
ninja -j1000 -C out/android_release
flutter/tools/gn --runtime-mode=release --goma
ninja -j1000 -C out/host_release

Run 'flutter run' with local engine:

cd flutter/examples/flutter_gallery
flutter clean
flutter run -v --release --preview-dart-2 --local-engine android_release

The message 'Kernel compilation' will appear twice in the output.

Logs

[ ] :app:generateReleaseBuildConfig
[ ] :app:prepareLintJar UP-TO-DATE
[ ] :app:cleanMergeReleaseAssets UP-TO-DATE
[ +574 ms] compiler message: Kernel compilation: [..cut..]/flutter/examples/flutter_gallery/lib/main.dart
[+17856 ms] :app:flutterDependenciesRelease
[ +700 ms] compiler message: Kernel compilation: [..cut..]/flutter/examples/flutter_gallery/lib/main.dart
[+5254 ms] :app:flutterBuildRelease
[ ] Skipping AOT snapshot build. Fingerprint match.
[+1089 ms] :app:mergeReleaseShaders
[ +10 ms] :app:compileReleaseShaders
[ ] :app:generateReleaseAssets

Flutter Doctor

[✓] Flutter (on Linux, locale en_US.UTF-8, channel master)

• Flutter version 0.1.3-pre.37 at /usr/local/google/home/alexmarkov/work/flutter

• Framework revision 1686b6d (57 minutes ago), 2018-02-16 10:22:52 -0800

• Engine revision 19e8d9b

• Dart version 2.0.0-edge.fe96de2858f078e4ad04f8f30640184bf3d8102d

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)

• Android SDK at /usr/local/google/home/alexmarkov/Android/Sdk

• Android NDK location not configured (optional; useful for native profiling support)

• Platform android-27, build-tools 27.0.3

• ANDROID_HOME = /usr/local/google/home/alexmarkov/Android/Sdk

• Java binary at: /opt/android-studio/jre/bin/java

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] Android Studio (version 3.0)

• Android Studio at /opt/android-studio

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] Connected devices

• Moto G 4 • ZY2245H6M5 • android-arm • Android 6.0.1 (API 23)

• No issues found!

/cc @aam @mraleph