Skip to content

flutter run fails with error 'Failed to run the Flutter compiler. Exit code: -1073741795' #14073

@ackens

Description

@ackens

Some days ago I discovered Flutter and decided to give it a try. I installed it on my laptop, tried to build an app and it worked perfectly from the first try. Today I installed Flutter on my PC as well, but when I try to run an app, it fails to do something and stops the process. The error I get is: Failed to run the Flutter compiler. Exit code: -1073741795 (more in the logs). Since everything works great on my laptop, I guess something's wrong with my PC?

I'm using Windows 10.

Steps to Reproduce

  1. Install Flutter
  2. Create a new project
  3. Run it
  4. Get the error

Logs

flutter analyze:

PS E:\flutterprojects\newapp> flutter analyze
Analyzing E:\flutterprojects\newapp...
No issues found!
Ran in 11.2s

flutter run:

PS E:\flutterprojects\newapp> flutter run
Launching lib/main.dart on HTC Desire 310 in debug mode...
Initializing gradle...                                1,3s
Resolving dependencies...                             2,7s
Running 'gradlew assembleDebug'...
Failed to run the Flutter compiler. Exit code: -1073741795

FAILURE: Build failed with an exception.

* Where:
Script 'E:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 361

* What went wrong:
Execution failed for task ':app:flutterDependenciesDebug'.
> Process 'command 'E:\flutter\bin\flutter.bat'' finished with non-zero exit value -1073741795

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

flutter run -v:

PS E:\flutterprojects\newapp> flutter run -v
[  +62 ms] [E:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +108 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/alpha
[        ] [E:\flutter\] git rev-parse --abbrev-ref HEAD
[  +48 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] alpha
[        ] [E:\flutter\] git ls-remote --get-url origin
[  +46 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [E:\flutter\] git log -n 1 --pretty=format:%H
[  +45 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 8f65fec5f5f7d7afbb0965f4a44bdb330a28fb19
[        ] [E:\flutter\] git log -n 1 --pretty=format:%ar
[  +45 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 4 weeks ago
[ +397 ms] C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb devices -l
[  +29 ms] Exit code 0 from: C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb devices -l
[        ] List of devices attached
           CC47JWX04574           device product:htc_europe model:HTC_Desire_310 device:htc_v1_u transport_id:1
[  +92 ms] C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb -s CC47JWX04574 shell getprop
[ +128 ms] ro.hardware = mt6582
[   +1 ms] ro.build.characteristics = default
[+1321 ms] Launching lib/main.dart on HTC Desire 310 in debug mode...
[  +14 ms] Initializing gradle...
[   +1 ms] Using gradle from E:\flutterprojects\newapp\android\gradlew.bat.
[ +129 ms] E:\flutterprojects\newapp\android\gradlew.bat -v
[+1158 ms]
                   ------------------------------------------------------------
                   Gradle 3.3
                   ------------------------------------------------------------

                   Build time:   2017-01-03 15:31:04 UTC
                   Revision:     075893a3d0798c0c1f322899b41ceca82e4e134b

                   Groovy:       2.4.7
                   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-b01)
                   OS:           Windows 10 10.0 amd64
[   +4 ms] Resolving dependencies...
[        ] [android\] E:\flutterprojects\newapp\android\gradlew.bat app:properties
[+2549 ms] NDK is missing a "platforms" directory.
                   If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to C:\Users\Alexander\AppData\Local\Android\sdk\ndk-bundle.
                   If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

                   Incremental java compilation is an incubating feature.
                   :app:properties

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

                   allprojects: [project ':app']
                   android: com.android.build.gradle.AppExtension_Decorated@6d4792ba
                   androidDependencies: task ':app:androidDependencies'
                   ant: org.gradle.api.internal.project.DefaultAntBuilder@5e693084
                   antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@27fd5ee6
                   archivesBaseName: app
                   artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@704c846e
                   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'
                   attributesSchema: org.gradle.api.internal.attributes.DefaultAttributesSchema_Decorated@214f1a9f
                   baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@3635f322
                   buildDependents: task ':app:buildDependents'
                   buildDir: E:\flutterprojects\newapp\build\app
                   buildFile: E:\flutterprojects\newapp\android\app\build.gradle
                   buildNeeded: task ':app:buildNeeded'
                   buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@7b72916c
                   buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@6f090598
                   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@364b7104
                   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: []
                   configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@2f7e280c
                   configurations: [configuration ':app:_debugAndroidTestAnnotationProcessor', configuration ':app:_debugAndroidTestApk', configuration ':app:_debugAndroidTestCompile', configuration ':app:_debugAndroidTestJackPlugin', configuration ':app:_debugAnnotationProcessor', configuration ':app:_debugApk', configuration ':app:_debugCompile', configuration ':app:_debugJackPlugin', configuration ':app:_debugUnitTestAnnotationProcessor', configuration ':app:_debugUnitTestApk', configuration ':app:_debugUnitTestCompile', configuration ':app:_debugUnitTestJackPlugin', configuration ':app:_profileAnnotationProcessor', configuration ':app:_profileApk', configuration ':app:_profileCompile', configuration ':app:_profileJackPlugin', configuration ':app:_profileUnitTestAnnotationProcessor', configuration ':app:_profileUnitTestApk', configuration ':app:_profileUnitTestCompile', configuration ':app:_profileUnitTestJackPlugin', configuration ':app:_releaseAnnotationProcessor', configuration ':app:_releaseApk', configuration ':app:_releaseCompile', configuration ':app:_releaseJackPlugin', configuration ':app:_releaseUnitTestAnnotationProcessor', configuration ':app:_releaseUnitTestApk', configuration ':app:_releaseUnitTestCompile', configuration ':app:_releaseUnitTestJackPlugin', configuration ':app:androidJacocoAgent', configuration ':app:androidJacocoAnt', configuration ':app:androidTestAnnotationProcessor', configuration ':app:androidTestApk', configuration ':app:androidTestCompile', configuration ':app:androidTestJackPlugin', configuration ':app:androidTestProvided', configuration ':app:androidTestWearApp', configuration ':app:annotationProcessor', configuration ':app:apk', configuration ':app:archives', configuration ':app:compile', configuration ':app:debugAnnotationProcessor', configuration ':app:debugApk', configuration ':app:debugCompile', configuration ':app:debugJackPlugin', configuration ':app:debugProvided', configuration ':app:debugWearApp', configuration ':app:default', configuration ':app:default-mapping', configuration ':app:default-metadata', configuration ':app:jackPlugin', configuration ':app:profileAnnotationProcessor', configuration ':app:profileApk', configuration ':app:profileCompile', configuration ':app:profileJackPlugin', configuration ':app:profileProvided', configuration ':app:profileWearApp', configuration ':app:provided', configuration ':app:releaseAnnotationProcessor', configuration ':app:releaseApk', configuration ':app:releaseCompile', configuration ':app:releaseJackPlugin', configuration ':app:releaseProvided', configuration ':app:releaseWearApp', configuration ':app:testAnnotationProcessor', configuration ':app:testApk', configuration ':app:testCompile', configuration ':app:testDebugAnnotationProcessor', configuration ':app:testDebugApk', configuration ':app:testDebugCompile', configuration ':app:testDebugJackPlugin', configuration ':app:testDebugProvided', configuration ':app:testDebugWearApp', configuration ':app:testJackPlugin', configuration ':app:testProfileAnnotationProcessor', configuration ':app:testProfileApk', configuration ':app:testProfileCompile', configuration ':app:testProfileJackPlugin', configuration ':app:testProfileProvided', configuration ':app:testProfileWearApp', configuration ':app:testProvided', configuration ':app:testReleaseAnnotationProcessor', configuration ':app:testReleaseApk', configuration ':app:testReleaseCompile', configuration ':app:testReleaseJackPlugin', configuration ':app:testReleaseProvided', configuration ':app:testReleaseWearApp', configuration ':app:testWearApp', configuration ':app:wearApp']
                   connectedAndroidTest: task ':app:connectedAndroidTest'
                   connectedCheck: task ':app:connectedCheck'
                   connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
                   convention: org.gradle.api.internal.plugins.DefaultConvention@4068257e
                   copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
                   copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
                   copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
                   defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@676add2e
                   defaultTasks: []
                   deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@a445396
                   dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@54a4249a
                   dependencyCacheDir: E:\flutterprojects\newapp\build\app\dependency-cache
                   dependencyCacheDirName: dependency-cache
                   depth: 1
                   description: null
                   deviceAndroidTest: task ':app:deviceAndroidTest'
                   deviceCheck: task ':app:deviceCheck'
                   displayName: project ':app'
                   distsDir: E:\flutterprojects\newapp\build\app\distributions
                   distsDirName: distributions
                   docsDir: E:\flutterprojects\newapp\build\app\docs
                   docsDirName: docs
                   ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@5566a8a5
                   extensions: org.gradle.api.internal.plugins.DefaultConvention@4068257e
                   extractProguardFiles: task ':app:extractProguardFiles'
                   fileOperations: org.gradle.api.internal.file.DefaultFileOperations@64548c8a
                   fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@4ca4ab75
                   flutter: FlutterExtension_Decorated@39d1c68f
                   flutterBuildDebug: task ':app:flutterBuildDebug'
                   flutterBuildProfile: task ':app:flutterBuildProfile'
                   flutterBuildRelease: task ':app:flutterBuildRelease'
                   flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
                   flutterDependenciesDebug: task ':app:flutterDependenciesDebug'
                   flutterDependenciesProfile: task ':app:flutterDependenciesProfile'
                   flutterDependenciesRelease: task ':app:flutterDependenciesRelease'
                   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
                   incrementalDebugAndroidTestJavaCompilationSafeguard: task ':app:incrementalDebugAndroidTestJavaCompilationSafeguard'
                   incrementalDebugJavaCompilationSafeguard: task ':app:incrementalDebugJavaCompilationSafeguard'
                   incrementalDebugUnitTestJavaCompilationSafeguard: task ':app:incrementalDebugUnitTestJavaCompilationSafeguard'
                   incrementalProfileJavaCompilationSafeguard: task ':app:incrementalProfileJavaCompilationSafeguard'
                   incrementalProfileUnitTestJavaCompilationSafeguard: task ':app:incrementalProfileUnitTestJavaCompilationSafeguard'
                   incrementalReleaseJavaCompilationSafeguard: task ':app:incrementalReleaseJavaCompilationSafeguard'
                   incrementalReleaseUnitTestJavaCompilationSafeguard: task ':app:incrementalReleaseUnitTestJavaCompilationSafeguard'
                   inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@59926290
                   installDebug: task ':app:installDebug'
                   installDebugAndroidTest: task ':app:installDebugAndroidTest'
                   installProfile: task ':app:installProfile'
                   installRelease: task ':app:installRelease'
                   jarDebugClasses: task ':app:jarDebugClasses'
                   jarProfileClasses: task ':app:jarProfileClasses'
                   jarReleaseClasses: task ':app:jarReleaseClasses'
                   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'
                   libsDir: E:\flutterprojects\newapp\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@743a95bb
                   logging: org.gradle.internal.logging.services.DefaultLoggingManager@19e285f4
                   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@70f47abe
                   modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@386cf13c
                   module: org.gradle.api.internal.artifacts.ProjectBackedModule@13120969
                   name: app
                   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
                   pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@47a63f91
                   plugins: [org.gradle.api.plugins.HelpTasksPlugin@77302dc, org.gradle.language.base.plugins.LifecycleBasePlugin@35be26e4, org.gradle.api.plugins.BasePlugin@3fa68cab, org.gradle.api.plugins.ReportingBasePlugin@7d7ad5d1, org.gradle.platform.base.plugins.ComponentBasePlugin@4b0c5c8f, org.gradle.language.base.plugins.LanguageBasePlugin@60f3dc62, org.gradle.platform.base.plugins.BinaryBasePlugin@7dcba7ec, org.gradle.api.plugins.JavaBasePlugin@2191a378, com.android.build.gradle.internal.coverage.JacocoPlugin@6490ad63, com.android.build.gradle.AppPlugin@73230351, FlutterPlugin@66d6eb19]
                   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'
                   prepareComAndroidSupportTestExposedInstrumentationApiPublish05Library: task ':app:prepareComAndroidSupportTestExposedInstrumentationApiPublish05Library'
                   prepareComAndroidSupportTestRules05Library: task ':app:prepareComAndroidSupportTestRules05Library'
                   prepareComAndroidSupportTestRunner05Library: task ':app:prepareComAndroidSupportTestRunner05Library'
                   prepareDebugAndroidTestDependencies: task ':app:prepareDebugAndroidTestDependencies'
                   prepareDebugDependencies: task ':app:prepareDebugDependencies'
                   prepareDebugUnitTestDependencies: task ':app:prepareDebugUnitTestDependencies'
                   prepareProfileDependencies: task ':app:prepareProfileDependencies'
                   prepareProfileUnitTestDependencies: task ':app:prepareProfileUnitTestDependencies'
                   prepareReleaseDependencies: task ':app:prepareReleaseDependencies'
                   prepareReleaseUnitTestDependencies: task ':app:prepareReleaseUnitTestDependencies'
                   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@64548c8a
                   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'
                   projectDir: E:\flutterprojects\newapp\android\app
                   projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
                   projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@dea5317
                   projectPath: :app
                   projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@2aaa7b
                   properties: {...}
                   reporting: org.gradle.api.reporting.ReportingExtension_Decorated@5358114a
                   reportsDir: E:\flutterprojects\newapp\build\app\reports
                   repositories: [org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@2574e607, org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@7ad96b55, org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@2f756f07, org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@3cb4e9e2, org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@3ef264ad]
                   resources: org.gradle.api.internal.resources.DefaultResourceHandler@fc033e5
                   rootDir: E:\flutterprojects\newapp\android
                   rootProject: root project 'android'
                   scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@bc9684d
                   scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@10296b2f
                   serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@3dd3b28b
                   services: ProjectScopeServices
                   signingReport: task ':app:signingReport'
                   sourceCompatibility: 1.8
                   sourceSets: []
                   standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@19e285f4
                   state: project state 'EXECUTED'
                   status: integration
                   subprojects: []
                   targetCompatibility: 1.8
                   tasks: [task ':app:androidDependencies', task ':app:assemble', task ':app:assembleAndroidTest', task ':app:assembleDebug', task ':app:assembleDebugAndroidTest', task ':app:assembleDebugUnitTest', task ':app:assembleProfile', task ':app:assembleProfileUnitTest', task ':app:assembleRelease', task ':app:assembleReleaseUnitTest', task ':app:buildDependents', task ':app:buildNeeded', task ':app:check', task ':app:checkDebugManifest', task ':app:checkProfileManifest', task ':app:checkReleaseManifest', task ':app:cleanBuildCache', task ':app:compileDebugAidl', task ':app:compileDebugAndroidTestAidl', task ':app:compileDebugAndroidTestJavaWithJavac', task ':app:compileDebugAndroidTestNdk', task ':app:compileDebugAndroidTestRenderscript', task ':app:compileDebugAndroidTestShaders', task ':app:compileDebugAndroidTestSources', task ':app:compileDebugJavaWithJavac', task ':app:compileDebugNdk', task ':app:compileDebugRenderscript', task ':app:compileDebugShaders', task ':app:compileDebugSources', task ':app:compileDebugUnitTestJavaWithJavac', task ':app:compileDebugUnitTestSources', task ':app:compileLint', task ':app:compileProfileAidl', task ':app:compileProfileJavaWithJavac', task ':app:compileProfileNdk', task ':app:compileProfileRenderscript', task ':app:compileProfileShaders', task ':app:compileProfileSources', task ':app:compileProfileUnitTestJavaWithJavac', task ':app:compileProfileUnitTestSources', task ':app:compileReleaseAidl', task ':app:compileReleaseJavaWithJavac', task ':app:compileReleaseNdk', task ':app:compileReleaseRenderscript', task ':app:compileReleaseShaders', task ':app:compileReleaseSources', task ':app:compileReleaseUnitTestJavaWithJavac', task ':app:compileReleaseUnitTestSources', task ':app:connectedAndroidTest', task ':app:connectedCheck', task ':app:connectedDebugAndroidTest', task ':app:copyFlutterAssetsDebug', task ':app:copyFlutterAssetsProfile', task ':app:copyFlutterAssetsRelease', task ':app:deviceAndroidTest', task ':app:deviceCheck', task ':app:extractProguardFiles', task ':app:flutterBuildDebug', task ':app:flutterBuildProfile', task ':app:flutterBuildRelease', task ':app:flutterBuildX86Jar', task ':app:flutterDependenciesDebug', task ':app:flutterDependenciesProfile', task ':app:flutterDependenciesRelease', task ':app:generateDebugAndroidTestAssets', task ':app:generateDebugAndroidTestBuildConfig', task ':app:generateDebugAndroidTestResValues', task ':app:generateDebugAndroidTestResources', task ':app:generateDebugAndroidTestSources', task ':app:generateDebugAssets', task ':app:generateDebugBuildConfig', task ':app:generateDebugResValues', task ':app:generateDebugResources', task ':app:generateDebugSources', task ':app:generateProfileAssets', task ':app:generateProfileBuildConfig', task ':app:generateProfileResValues', task ':app:generateProfileResources', task ':app:generateProfileSources', task ':app:generateReleaseAssets', task ':app:generateReleaseBuildConfig', task ':app:generateReleaseResValues', task ':app:generateReleaseResources', task ':app:generateReleaseSources', task ':app:incrementalDebugAndroidTestJavaCompilationSafeguard', task ':app:incrementalDebugJavaCompilationSafeguard', task ':app:incrementalDebugUnitTestJavaCompilationSafeguard', task ':app:incrementalProfileJavaCompilationSafeguard', task ':app:incrementalProfileUnitTestJavaCompilationSafeguard', task ':app:incrementalReleaseJavaCompilationSafeguard', task ':app:incrementalReleaseUnitTestJavaCompilationSafeguard', task ':app:installDebug', task ':app:installDebugAndroidTest', task ':app:installProfile', task ':app:installRelease', task ':app:jarDebugClasses', task ':app:jarProfileClasses', task ':app:jarReleaseClasses', task ':app:javaPreCompileDebug', task ':app:javaPreCompileDebugAndroidTest', task ':app:javaPreCompileDebugUnitTest', task ':app:javaPreCompileProfile', task ':app:javaPreCompileProfileUnitTest', task ':app:javaPreCompileRelease', task ':app:javaPreCompileReleaseUnitTest', task ':app:lint', task ':app:lintDebug', task ':app:lintProfile', task ':app:lintRelease', task ':app:lintVitalRelease', task ':app:mergeDebugAndroidTestAssets', task ':app:mergeDebugAndroidTestJniLibFolders', task ':app:mergeDebugAndroidTestResources', task ':app:mergeDebugAndroidTestShaders', task ':app:mergeDebugAssets', task ':app:mergeDebugJniLibFolders', task ':app:mergeDebugResources', task ':app:mergeDebugShaders', task ':app:mergeProfileAssets', task ':app:mergeProfileJniLibFolders', task ':app:mergeProfileResources', task ':app:mergeProfileShaders', task ':app:mergeReleaseAssets', task ':app:mergeReleaseJniLibFolders', task ':app:mergeReleaseResources', task ':app:mergeReleaseShaders', task ':app:mockableAndroidJar', task ':app:packageDebug', task ':app:packageDebugAndroidTest', task ':app:packageProfile', task ':app:packageRelease', task ':app:preBuild', task ':app:preDebugAndroidTestBuild', task ':app:preDebugBuild', task ':app:preDebugUnitTestBuild', task ':app:preProfileBuild', task ':app:preProfileUnitTestBuild', task ':app:preReleaseBuild', task ':app:preReleaseUnitTestBuild', task ':app:prepareComAndroidSupportTestExposedInstrumentationApiPublish05Library', task ':app:prepareComAndroidSupportTestRules05Library', task ':app:prepareComAndroidSupportTestRunner05Library', task ':app:prepareDebugAndroidTestDependencies', task ':app:prepareDebugDependencies', task ':app:prepareDebugUnitTestDependencies', task ':app:prepareProfileDependencies', task ':app:prepareProfileUnitTestDependencies', task ':app:prepareReleaseDependencies', task ':app:prepareReleaseUnitTestDependencies', task ':app:processDebugAndroidTestJavaRes', task ':app:processDebugAndroidTestManifest', task ':app:processDebugAndroidTestResources', task ':app:processDebugJavaRes', task ':app:processDebugManifest', task ':app:processDebugResources', task ':app:processDebugUnitTestJavaRes', task ':app:processProfileJavaRes', task ':app:processProfileManifest', task ':app:processProfileResources', task ':app:processProfileUnitTestJavaRes', task ':app:processReleaseJavaRes', task ':app:processReleaseManifest', task ':app:processReleaseResources', task ':app:processReleaseUnitTestJavaRes', task ':app:properties', task ':app:signingReport', task ':app:sourceSets', task ':app:test', task ':app:testDebugUnitTest', task ':app:testProfileUnitTest', task ':app:testReleaseUnitTest', task ':app:transformClassesWithDexForDebug', task ':app:transformClassesWithDexForDebugAndroidTest', task ':app:transformClassesWithDexForProfile', task ':app:transformClassesWithDexForRelease', task ':app:transformNativeLibsWithMergeJniLibsForDebug', task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest', task ':app:transformNativeLibsWithMergeJniLibsForProfile', task ':app:transformNativeLibsWithMergeJniLibsForRelease', task ':app:transformResourcesWithMergeJavaResForDebug', task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest', task ':app:transformResourcesWithMergeJavaResForDebugUnitTest', task ':app:transformResourcesWithMergeJavaResForProfile', task ':app:transformResourcesWithMergeJavaResForProfileUnitTest', task ':app:transformResourcesWithMergeJavaResForRelease', task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest', task ':app:uninstallAll', task ':app:uninstallDebug', task ':app:uninstallDebugAndroidTest', task ':app:uninstallProfile', task ':app:uninstallRelease', task ':app:validateSigningDebug', task ':app:validateSigningDebugAndroidTest', task ':app:validateSigningProfile', task ':app:validateSigningRelease']
                   test: task ':app:test'
                   testDebugUnitTest: task ':app:testDebugUnitTest'
                   testProfileUnitTest: task ':app:testProfileUnitTest'
                   testReleaseUnitTest: task ':app:testReleaseUnitTest'
                   testReportDir: E:\flutterprojects\newapp\build\app\reports\tests
                   testReportDirName: tests
                   testResultsDir: E:\flutterprojects\newapp\build\app\test-results
                   testResultsDirName: test-results
                   transformClassesWithDexForDebug: task ':app:transformClassesWithDexForDebug'
                   transformClassesWithDexForDebugAndroidTest: task ':app:transformClassesWithDexForDebugAndroidTest'
                   transformClassesWithDexForProfile: task ':app:transformClassesWithDexForProfile'
                   transformClassesWithDexForRelease: task ':app:transformClassesWithDexForRelease'
                   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

                   BUILD SUCCESSFUL

                   Total time: 2.35 secs
[ +117 ms] C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb -s CC47JWX04574 logcat -v time -t 1
[ +124 ms] Exit code 0 from: C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb -s CC47JWX04574 logcat -v time -t 1
[   +2 ms] --------- beginning of /dev/log/system
           --------- beginning of /dev/log/main
           01-13 00:50:47.472 W/ADB_SERVICES(32073): adb: unable to open /proc/32073/oom_adj
[   +5 ms] C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb -s CC47JWX04574 logcat -v time
[  +16 ms] C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb version
[  +40 ms] Android Debug Bridge version 1.0.39
           Version 0.0.1-4500957
           Installed as C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb.EXE
[   +8 ms] C:\Users\Alexander\AppData\Local\Android\sdk\platform-tools\adb start-server
[  +45 ms] Building APK
[ +334 ms] Running 'gradlew assembleDebug'...
[   +9 ms] [android\] E:\flutterprojects\newapp\android\gradlew.bat -Ptarget=E:\flutterprojects\newapp\lib/main.dart assembleDebug
[+2015 ms] NDK is missing a "platforms" directory.
[   +3 ms] If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to C:\Users\Alexander\AppData\Local\Android\sdk\ndk-bundle.
[   +2 ms] If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
[ +150 ms] Incremental java compilation is an incubating feature.
[ +116 ms] :app:flutterBuildX86Jar UP-TO-DATE
[   +3 ms] :app:preBuild UP-TO-DATE
[   +2 ms] :app:preDebugBuild UP-TO-DATE
[   +1 ms] :app:checkDebugManifest
[   +1 ms] :app:prepareDebugDependencies
[   +4 ms] :app:compileDebugAidl UP-TO-DATE
[   +7 ms] :app:compileDebugRenderscript UP-TO-DATE
[  +10 ms] :app:generateDebugBuildConfig UP-TO-DATE
[+1986 ms] Failed to run the Flutter compiler. Exit code: -1073741795
[  +36 ms] :app:flutterDependenciesDebug FAILED
[   +3 ms] FAILURE: Build failed with an exception.
[   +2 ms] * Where:
[   +1 ms] Script 'E:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 361
[   +1 ms] * What went wrong:
[        ] Execution failed for task ':app:flutterDependenciesDebug'.
[   +1 ms] > Process 'command 'E:\flutter\bin\flutter.bat'' finished with non-zero exit value -1073741795
[   +3 ms] * Try:
[   +1 ms] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[   +1 ms] BUILD FAILED
[   +1 ms] Total time: 4.207 secs
[ +449 ms] "flutter run" took 11 165ms.
Gradle build failed: 1

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28)
#1      _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:314)
<asynchronous suspension>
#2      buildGradleProject (package:flutter_tools/src/android/gradle.dart:238)
<asynchronous suspension>
#3      buildApk (package:flutter_tools/src/android/apk.dart:36)
<asynchronous suspension>
#4      AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:365)
<asynchronous suspension>
#5      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:267)
<asynchronous suspension>
#6      HotRunner.run (package:flutter_tools/src/run_hot.dart:215)
<asynchronous suspension>
#7      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:335)
<asynchronous suspension>
#8      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:256)
<asynchronous suspension>
#9      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:196)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:279)
<asynchronous suspension>
#12     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#13     new Future.sync (dart:async/future.dart:222)
#14     CommandRunner.run (package:args/command_runner.dart:109)
#15     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:162)
#16     run.<anonymous closure> (package:flutter_tools/runner.dart:89)
<asynchronous suspension>
#17     AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#18     AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#19     _rootRun (dart:async/zone.dart:1120)
#20     _CustomZone.run (dart:async/zone.dart:1001)
#21     runZoned (dart:async/zone.dart:1467)
#22     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#23     run (package:flutter_tools/runner.dart:60)
<asynchronous suspension>
#24     main (package:flutter_tools/executable.dart:43)
<asynchronous suspension>
#25     main (file:///E:/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#26     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#27     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)


[  +72 ms] ensureAnalyticsSent: 51ms
[   +6 ms] exiting with code 1

Flutter Doctor

PS E:\flutterprojects\newapp> flutter doctor
[√] Flutter (on Microsoft Windows [Version 10.0.16299.192], locale ru-RU, channel alpha)
    • Flutter at E:\flutter
    • Framework revision 8f65fec5f5 (4 weeks ago), 2017-12-12 09:50:14 -0800
    • Engine revision edaecdc8b8
    • Tools Dart version 1.25.0-dev.11.0
    • Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\Alexander\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: E:\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 E:\Android Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] Connected devices
    • HTC Desire 310 • CC47JWX04574 • android-arm • Android 4.2.2 (API 17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: first hourThe first hour of using Flutterc: crashStack traces logged to the consoleplatform-windowsBuilding on or for Windows specificallyt: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions