Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'G:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904 Build Error #70956

Closed
dultcher opened this issue Nov 20, 2020 · 11 comments
Closed
Labels
in triage Presently being triaged by the triage team

Comments

@dultcher
Copy link

Please Help me with this error, it sucks like die.
Have been changing flutter SDK 1.20.0 to 1.22.4. but still have the same issue.
It's been 3 months that I can't code with Flutter

@iapicca
Copy link
Contributor

iapicca commented Nov 20, 2020

@dultcher
can you provide your flutter doctor -v and your flutter build apk -v

@darshankawar
Copy link
Member

@dultcher
Please provide above requested details along with flutter run --verbose.
Thanks.

@darshankawar darshankawar added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Nov 23, 2020
@issantech
Copy link

PS C:\Users\HP\Documents\IT Classroom\Information Technology Projects\Flutter\verypass> flutter run
Using hardware rendering with device Android SDK built for x86. If you notice
graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib\main.dart on Android SDK built for x86 in debug mode...

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 1m 31s
Running Gradle task 'assembleDebug'... Done 93.7s
Exception: Gradle task assembleDebug failed with exit code 1
PS C:\Users\HP\Documents\IT Classroom\Information Technology Projects\Flutter\verypass> flutter verbose
Could not find a command named "verbose".

Run 'flutter -h' (or 'flutter -h') for available flutter commands and
options.
PS C:\Users\HP\Documents\IT Classroom\Information Technology Projects\Flutter\verypass> flutter run --verbose
[ +201 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +198 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +36 ms] 1aafb3a
[ +61 ms] executing: [C:\src\flutter/] git tag --points-at HEAD
[ +204 ms] Exit code 0 from: git tag --points-at HEAD
[ ] 1.22.4
[ +15 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}[ +147 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[ +134 ms] Exit code 0 from: git ls-remote --get-url origin
[ +126 ms] https://github.com/flutter/flutter.git
[ +170 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[ +179 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] stable
[ +255 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping
update.
[ +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required,
skipping update.
[ +80 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required,
skipping update.
[ +40 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping
update.
[ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +20 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skippingupdate.
[ +21 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping
update.
[ +59 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping
update.
[ +3 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required,
skipping update.
[ +61 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required,
skipping update.
[ +66 ms] executing: C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exedevices -l
[ +171 ms] List of devices attached
emulator-5554 device product:sdk_gphone_x86
model:Android_SDK_built_for_x86 device:generic_x86
transport_id:1
[ +11 ms] C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exe -s
emulator-5554 shell getprop
[ +151 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping
update.
[ +40 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required,
skipping update.
[ +13 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping
update.
[ +77 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skippingupdate.
[ +42 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping
update.
[ +2 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping
update.
[ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required,
skipping update.
[ +625 ms] Found plugin webview_flutter at
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\webview_flutter-1.0.0
[ +471 ms] Found plugin webview_flutter at
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\webview_flutter-1.0.0
[ +68 ms] Generating C:\Users\HP\Documents\IT Classroom\Information Technology
Projects\Flutter\verypass\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +69 ms] ro.hardware = ranchu
[ +66 ms] Using hardware rendering with device Android SDK built for x86. If you
notice
graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
[ +40 ms] Starting incremental build...
[ +32 ms] Initializing file store
[ +69 ms] Skipping target: gen_localizations
[ +46 ms] complete
[ +51 ms] Launching lib\main.dart on Android SDK built for x86 in debug mode...
[ +14 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/--incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -Ddart.developer.causal_async_stacks=true
--output-dill
C:\Users\HP\AppData\Local\Temp\flutter_tools.53ffc24f\flutter_tool.2c9abfe8\app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts--track-widget-creation --filesystem-scheme org-dartlang-root
--initialize-from-dill build\cache.dill.track.dill
[ +157 ms] executing:
C:\Users\HP\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree
C:\Users\HP\Documents\IT Classroom\Information Technology
Projects\Flutter\verypass\build\app\outputs\flutter-apk\app.apk
AndroidManifest.xml
[ +379 ms] Exit code 0 from:
C:\Users\HP\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree
C:\Users\HP\Documents\IT Classroom\Information Technology
Projects\Flutter\verypass\build\app\outputs\flutter-apk\app.apk
AndroidManifest.xml
[ +3 ms] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x3e9
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="com.example.verypass" (Raw: "com.example.verypass")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
E: application (line=17)
A: android:label(0x01010001)="VeryPass" (Raw: "VeryPass")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication"
(Raw: "io.flutter.app.FlutterApplication")
A:
android:appComponentFactory(0x0101057a)="androidx.core.app.CoreCo mponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=22)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.verypass.MainActivity" (Raw: "com.example.verypass.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type
0x12)0xffffffff
E: meta-data (line=36)
A:
android:name(0x01010003)="io.flutter.embedding.android.Normal Theme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=46)
A:
android:name(0x01010003)="io.flutter.embedding.android.Splash ScreenDrawable" (Raw:
"io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040000
E: intent-filter (line=50)
E: action (line=51)
A: android:name(0x01010003)="android.intent.action.MAIN"
(Raw: "android.intent.action.MAIN")
E: category (line=53)
A:
android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=60)
A: android:name(0x01010003)="flutterEmbedding" (Raw:
"flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
[ +295 ms] executing: C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exe-s emulator-5554 shell -x logcat -v time -t 1
[ +171 ms] Exit code 0 from:
C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554
shell -x logcat -v time -t 1
[ +1 ms] --------- beginning of main
11-23 21:55:53.502 I/DeviceStateChecker( 2806): DeviceStateChecker
cancelled
[ +3 ms] executing: C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exe-s emulator-5554 shell -x logcat -v time -t 1
[ +257 ms] Exit code 0 from:
C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554
shell -x logcat -v time -t 1
[ +2 ms] --------- beginning of main
11-23 21:55:53.502 I/DeviceStateChecker( 2806): DeviceStateChecker
cancelled
[ +48 ms] <- compile package:verypass/main.dart
[ +33 ms] executing: C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exeversion
[ +150 ms] Android Debug Bridge version 1.0.40
Version 4986621
Installed as
C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exe
[ +6 ms] executing: C:\Users\HP\AppData\Local\Android\sdk\platform-tools\adb.exestart-server
[ +314 ms] Building APK
[ +116 ms] Running Gradle task 'assembleDebug'...
[ +13 ms] gradle.properties already sets android.enableR8
[ +10 ms] Using gradle from C:\Users\HP\Documents\IT Classroom\Information
Technology Projects\Flutter\verypass\android\gradlew.bat.
[ +76 ms] C:\Users\HP\Documents\IT Classroom\Information Technology
Projects\Flutter\verypass\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +94 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java
-version
[ +778 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java
-version
[ +1 ms] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[ +46 ms] executing: [C:\Users\HP\Documents\IT Classroom\Information Technology
Projects\Flutter\verypass\android/] C:\Users\HP\Documents\IT Classroom\InformationTechnology Projects\Flutter\verypass\android\gradlew.bat -Pverbose=true
-Ptarget-platform=android-x86 -Ptarget=C:\Users\HP\Documents\IT
Classroom\Information Technology Projects\Flutter\verypass\lib\main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+29316 ms] > Task :app:compileFlutterBuildDebug
[ +294 ms] [ +251 ms] executing: [C:\src\flutter/] git -c log.showSignature=false
log -n 1 --pretty=format:%H
[ +30 ms] [ +820 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +1 ms] [ +1 ms] 1aafb3a
[ +1 ms] [ +1 ms] executing: [C:\src\flutter/] git tag --points-at HEAD
[ +122 ms] [ +153 ms] Exit code 0 from: git tag --points-at HEAD
[ +230 ms] [ ] 1.22.4
[ +13 ms] [ +19 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref
--symbolic @{u}
[ +2 ms] [ +170 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}[ +1 ms] [ ] origin/stable
[ +32 ms] [ ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[ +2 ms] [ +108 ms] Exit code 0 from: git ls-remote --get-url origin
[ +1 ms] [ ] https://github.com/flutter/flutter.git
[ +183 ms] [ +186 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD[ +212 ms] [ +208 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +70 ms] [ ] stable
[ +7 ms] [ +91 ms] Artifact Instance of 'AndroidMavenArtifacts' is not
required, skipping update.
[ +10 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not
required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required,
skipping update.
[ +6 ms] [ +7 ms] Artifact Instance of 'WindowsEngineArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required,skipping update.
[ +1 ms] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required,skipping update.
[ +1 ms] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not
required, skipping update.
[ +4 ms] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not
required, skipping update.
[ +68 ms] [ +32 ms] Artifact Instance of 'MaterialFonts' is not required,
skipping update.
[ +6 ms] [ ] Artifact Instance of 'GradleWrapper' is not required,
skipping update.
[ +2 ms] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required,
skipping update.
[ +5 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required,
skipping update.
[ +2 ms] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping
update.
[ +5 ms] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not
required, skipping update.
[ +5 ms] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required,skipping update.
[ +1 ms] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required,skipping update.
[ +4 ms] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not
required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required,
skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required,
skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required,
skipping update.
[ +45 ms] [ +130 ms] Initializing file store
[ +105 ms] [ +46 ms] Done initializing file store
[ +101 ms] [ +193 ms] Skipping target: gen_localizations
[+2095 ms] [+2006 ms] Skipping target: kernel_snapshot
[ +7 ms] [ +12 ms] debug_android_application: Starting due to {}
[+1505 ms] [+1579 ms] Manifest contained wildcard assets. Inserting missing file
into build graph to force rerun. for more information see #56466.
[ +584 ms] [ +572 ms] Persisting file store
[ +10 ms] [ +28 ms] Done persisting file store
[ +90 ms] [ +66 ms] Target debug_android_application failed:
FileSystemException: Cannot copy file to 'C:\Users\HP\Documents\IT
Classroom\Information Technology
Projects\Flutter\verypass\build\app\intermediates\flutter\debug\flutter_assets\service/Transport.png', path = 'C:\Users\HP\Documents\IT Classroom\Information
Technology Projects\Flutter\verypass\service\Transport.png' (OS Error: Access is
denied.
[ +6 ms] , errno = 5)
[ +107 ms] #0 _File.copy.
(dart:io/file_impl.dart:328:9)
[ +11 ms] #1 _rootRunUnary (dart:async/zone.dart:1198:47)
[ +1 ms] #2 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +2 ms] #3 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
[ +15 ms] #4 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +4 ms] #5 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
[ +1 ms] #6 Future._completeWithValue
(dart:async/future_impl.dart:529:5)
[ +1 ms] #7 Future._asyncCompleteWithValue.
(dart:async/future_impl.dart:567:7)
[ +1 ms] #8 _rootRun (dart:async/zone.dart:1190:13)
[ +1 ms] #9 _CustomZone.run (dart:async/zone.dart:1093:19)
[ +1 ms] #10 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
[ +1 ms] #11 _CustomZone.bindCallbackGuarded.
(dart:async/zone.dart:1037:23)
[ +3 ms] #12 _microtaskLoop
(dart:async/schedule_microtask.dart:41:21)
[ +16 ms] #13 _startMicrotaskLoop
(dart:async/schedule_microtask.dart:50:5)
[ +4 ms] #14 _runPendingImmediateCallback
(dart:isolate-patch/isolate_patch.dart:118:13)
[ +2 ms] #15 _RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:169:5)
[ +131 ms] [ +299 ms] "flutter assemble" took 4,839ms.
[ +24 ms] [ +13 ms]
[ +1 ms] #0 throwToolExit
(package:flutter_tools/src/base/common.dart:14:3)
[ +1 ms] #1 AssembleCommand.runCommand
(package:flutter_tools/src/commands/assemble.dart:238:7)
[ +12 ms] #2 _rootRunUnary (dart:async/zone.dart:1198:47)
[ +1 ms] #3 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +5 ms] #4 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
[ +5 ms] #5 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +5 ms] #6 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
[ +1 ms] #7 Future._completeWithValue
(dart:async/future_impl.dart:529:5)
[ +1 ms] #8 _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
[ +33 ms] #9 _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
[ +32 ms] #10 FlutterBuildSystem.build
(package:flutter_tools/src/build_system/build_system.dart)
[ +1 ms] #11 _rootRunUnary (dart:async/zone.dart:1198:47)
[ +2 ms] #12 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +1 ms] #13 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
[ +1 ms] #14 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #15 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
[ +1 ms] #16 Future._completeWithValue
(dart:async/future_impl.dart:529:5)
[ +1 ms] #17 _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
[ +1 ms] #18 _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
[ +1 ms] #19 _BuildInstance._invokeInternal
(package:flutter_tools/src/build_system/build_system.dart)
[ +1 ms] #20 _asyncErrorWrapperHelper.errorCallback
(dart:async-patch/async_patch.dart:91:64)
[ +1 ms] #21 _rootRunBinary (dart:async/zone.dart:1214:47)
[ +1 ms] #22 _CustomZone.runBinary (dart:async/zone.dart:1107:19)[ +2 ms] #23 _FutureListener.handleError
(dart:async/future_impl.dart:157:20)
[ +7 ms] #24 Future._propagateToListeners.handleError
(dart:async/future_impl.dart:708:47)
[ +1 ms] #25 Future._propagateToListeners
(dart:async/future_impl.dart:729:24)
[ +1 ms] #26 Future._completeError
(dart:async/future_impl.dart:537:5)
[ +1 ms] #27 _AsyncAwaitCompleter.completeError
(dart:async-patch/async_patch.dart:47:15)
[ +1 ms] #28 AndroidAssetBundle.build
(package:flutter_tools/src/build_system/targets/android.dart)
[ +1 ms] #29 _asyncErrorWrapperHelper.errorCallback
(dart:async-patch/async_patch.dart:91:64)
[ +2 ms] #30 _rootRunBinary (dart:async/zone.dart:1214:47)
[ +3 ms] #31 _CustomZone.runBinary (dart:async/zone.dart:1107:19)[ +1 ms] #32 _FutureListener.handleError
(dart:async/future_impl.dart:157:20)
[ +1 ms] #33 Future._propagateToListeners.handleError
(dart:async/future_impl.dart:708:47)
[ +1 ms] #34 Future._propagateToListeners
(dart:async/future_impl.dart:729:24)
[ +1 ms] #35 Future._completeError
(dart:async/future_impl.dart:537:5)
[ +1 ms] #36 _AsyncAwaitCompleter.completeError
(dart:async-patch/async_patch.dart:47:15)
[ +21 ms] #37 copyAssets
(package:flutter_tools/src/build_system/targets/assets.dart)
[ +1 ms] #38 _asyncErrorWrapperHelper.errorCallback
(dart:async-patch/async_patch.dart:91:64)
[ +1 ms] #39 _rootRunBinary (dart:async/zone.dart:1214:47)
[ ] #40 _CustomZone.runBinary (dart:async/zone.dart:1107:19)[ ] #41 _FutureListener.handleError
(dart:async/future_impl.dart:157:20)
[ +1 ms] #42 Future._propagateToListeners.handleError
(dart:async/future_impl.dart:708:47)
[ +1 ms] #43 Future._propagateToListeners
(dart:async/future_impl.dart:729:24)
[ +1 ms] #44 Future._completeError
(dart:async/future_impl.dart:537:5)
[ +1 ms] #45 Future.wait.
(dart:async/future.dart:426:23)
[ +1 ms] #46 _rootRunUnary (dart:async/zone.dart:1198:47)
[ ] #47 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #48 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
[ +2 ms] #49 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #50 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
[ +2 ms] #51 Future._completeWithValue
(dart:async/future_impl.dart:529:5)
[ +1 ms] #52 _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
[ +1 ms] #53 _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
[ +1 ms] #54 copyAssets.
(package:flutter_tools/src/build_system/targets/assets.dart)
[ +1 ms] #55 _rootRunUnary (dart:async/zone.dart:1198:47)
[ +1 ms] #56 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +1 ms] #57 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
[ +1 ms] #58 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #59 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
[ +1 ms] #60 Future._completeWithValue
(dart:async/future_impl.dart:529:5)
[ +2 ms] #61 _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
[ +2 ms] #62 _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
[ +7 ms] #63 ForwardingFile.copy
(package:file/src/forwarding/forwarding_file.dart)
[ +2 ms] #64 _rootRunUnary (dart:async/zone.dart:1198:47)
[ +1 ms] #65 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +1 ms] #66 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
[ +1 ms] #67 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +2 ms] #68 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
[ +2 ms] #69 Future._completeWithValue
(dart:async/future_impl.dart:529:5)
[ +3 ms] #70 _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
[ +2 ms] #71 _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
[ +1 ms] #72 ForwardingFile.copy
(package:file/src/forwarding/forwarding_file.dart)
[ +1 ms] #73 _rootRunUnary (dart:async/zone.dart:1198:47)
[ +1 ms] #74 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +1 ms] #75 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
[ +1 ms] #76 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #77 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
[ +1 ms] #78 Future._completeWithValue
(dart:async/future_impl.dart:529:5)
[ +40 ms] #79 Future._asyncCompleteWithValue.
(dart:async/future_impl.dart:567:7)
[ +52 ms] #80 _rootRun (dart:async/zone.dart:1190:13)
[ +1 ms] #81 _CustomZone.run (dart:async/zone.dart:1093:19)
[ +1 ms] #82 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
[ ] #83 _CustomZone.bindCallbackGuarded.
(dart:async/zone.dart:1037:23)
[ +1 ms] #84 _microtaskLoop
(dart:async/schedule_microtask.dart:41:21)
[ +1 ms] #85 _startMicrotaskLoop
(dart:async/schedule_microtask.dart:50:5)
[ +1 ms] #86 _runPendingImmediateCallback
(dart:isolate-patch/isolate_patch.dart:118:13)
[ +1 ms] #87 _RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:169:5)
[ +1 ms] [ +4 ms] ensureAnalyticsSent: 1ms
[ ] [ +4 ms] Running shutdown hooks
[ ] [ ] Shutdown hooks complete
[ ] [ +11 ms] exiting with code 1
[ +1 ms] > Task :app:compileFlutterBuildDebug FAILED
[ +1 ms] 1 actionable task: 1 executed
[ +1 ms] FAILURE: Build failed with an exception.
[ +1 ms] * Where:
[ ] Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle'
line: 904
[ +1 ms] * What went wrong:
[ +1 ms] Execution failed for task ':app:compileFlutterBuildDebug'.
[ +9 ms] > Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with
non-zero exit value 1
[ +2 ms] * Try:
[ +1 ms] Run with --stacktrace option to get the stack trace. Run with --info or--debug option to get more log output. Run with --scan to get full insights.
[ +4 ms] * Get more help at https://help.gradle.org
[ +1 ms] BUILD FAILED in 35s
[ +554 ms] Running Gradle task 'assembleDebug'... (completed in 37.5s)
[+4600 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +4 ms] "flutter run" took 46,568ms.
[ +9 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3) #1 RunCommand.runCommand
(package:flutter_tools/src/commands/run.dart:607:7)

#2 FlutterCommand.verifyThenRunCommand
(package:flutter_tools/src/runner/flutter_command.dart:977:18)
#3 _rootRunUnary (dart:async/zone.dart:1198:47)
#4 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#5 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
#6 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
#7 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
#8 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#9 _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
#10 _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
#11 RunCommand.usageValues
(package:flutter_tools/src/commands/run.dart)
#12 _rootRunUnary (dart:async/zone.dart:1198:47)
#13 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#14 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
#15 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
#16 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
#17 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#18 _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
#19 _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
#20 AndroidDevice.isLocalEmulator
(package:flutter_tools/src/android/android_device.dart)
#21 _rootRunUnary (dart:async/zone.dart:1198:47)
#22 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#23 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
#24 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
#25 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
#26 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#27 Future._asyncCompleteWithValue.
(dart:async/future_impl.dart:567:7)
#28 _rootRun (dart:async/zone.dart:1190:13)
#29 _CustomZone.run (dart:async/zone.dart:1093:19)
#30 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#31 _CustomZone.bindCallbackGuarded.
(dart:async/zone.dart:1037:23)
#32 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#33 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#34 _runPendingImmediateCallback
(dart:isolate-patch/isolate_patch.dart:118:13)
#35 _RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:169:5)

[ +25 ms] ensureAnalyticsSent: 5ms
[ +2 ms] Running shutdown hooks
[ ] Shutdown hook priority 4
[ +8 ms] Shutdown hooks complete
[ +1 ms] exiting with code 1

@issantech
Copy link

@dultcher
can you provide your flutter doctor -v and your flutter build apk -v
C:\Users\HP>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.18363.1198], locale en-GB)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[!] Android Studio (version 4.1.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.51.1)
[√] Connected device (1 available)

! Doctor found issues in 1 category.
Instead I've installed Android, the most recent version with Dart, Flutter plugins in

@issantech
Copy link

The ERROR that I get

PS C:\Users\HP\Documents\IT Classroom\Information Technology Projects\Flutter\verypass> flutter run
Using hardware rendering with device Android SDK built for x86. If you notice
graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib\main.dart on Android SDK built for x86 in debug mode...

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 1m 31s
Running Gradle task 'assembleDebug'... Done 93.7s
Exception: Gradle task assembleDebug failed with exit code 1
PS C:\Users\HP\Documents\IT Classroom\Information Technology Projects\Flutter\verypass> flutter verbose
Could not find a command named "verbose".

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

@pedromassangocode
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

@pedromassangocode pedromassangocode removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 16, 2020
@dave-laye
Copy link

try running

flutter clean
flutter upgrade
it work for me.

@neezystudio
Copy link

anyone who found a solution yet?

@iapicca
Copy link
Contributor

iapicca commented Mar 12, 2021

@neezystudio
this issue was closed 3 months ago because not reproducible and therefore not workable
currently is not worked on
please follow the indication in this reply

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

@neezystudio
Copy link

@neezystudio
this issue was closed 3 months ago because not reproducible and therefore not workable
currently is not worked on
please follow the indication in this reply

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

Thanks I'll just die😂

@github-actions
Copy link

github-actions bot commented Aug 4, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in triage Presently being triaged by the triage team
Projects
None yet
Development

No branches or pull requests

7 participants