-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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 #67608
Comments
I Switched to Beta channel as well but it didn't help. Getting the same error. |
@JeetBhattachariya |
[ +122 ms] executing: [G:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +277 ms] ensureAnalyticsSent: 252ms |
I tried running in debug mode in beta channel. It worked ok . But the final final file is in debug mode . And to replicate I just ran the build command after finishing up my code. |
I created a new app and ran the build command. it worked but my existing app isn't working. |
@JeetBhattachariya
You seem to have incorrect format or more than one fonts listed in pubspec.yaml. Please fix it and try again to see if it works. |
Hi , |
its working now. Thanks for pointing out. |
Please I am having this same issue how were you able to solve it? |
Hi, I have the same issue too @JeetBhattachariya can you tell me how were you able to solve it? |
hello, to solve this problem install android sdk 29 and create new project |
Hello @boualizakaria, ok thanks I'll try it this weekend. |
Hi @MickaelDuprat, i find the correct issues try |
Hi @boualizakaria, |
What did you do so that it works |
I'm sorry, i didn't saw your comment,
if you change anything in pubspec.yaml stop your app and run it again
otherwise it will causes a problem
Le ven. 20 nov. 2020 à 19:24, dultcher <notifications@github.com> a écrit :
… its working now. Thanks for pointing out.
What did you do so that it works
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJCAQCY6XTDDRWD4VEXGK3SQ2X6LANCNFSM4SIKYDJA>
.
|
@darshankawar i am facing the same issue and here is result of my PS D:\apps\flutter\simdata> flutter build appbundle --verbose [ +273 ms] ensureAnalyticsSent: 260ms |
I told you your problem maybe is in pubspec.yaml
delete any package and asset that you added and any code related to it then
run the project "like a new project"
After that add the package and assets you need to your package in
pubspec.yaml and before you code any things stop your emulator and start it
again.
Let me take an example to simplify the things
you have a new project no assets and no extra packages
you run it and it starts run on your emulator, suppose you want to add a
new extra package or new asset
go to pubspek.yaml add your asset or new package and save the file
the before add any code stop the running the project and restart it again
that's the way to avoid the error
Le mer. 9 déc. 2020 à 07:37, ZiaUrRahmam <notifications@github.com> a
écrit :
… @darshankawar <https://github.com/darshankawar> i am facing the same
issue and here is result of my flutter build appbundle --verbose command
PS D:\apps\flutter\simdata> flutter build appbundle --verbose
[ +169 ms] executing: [D:\apps\FlutterSDK\flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[ +245 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +3 ms] 1aafb3a
<1aafb3a>
[ +4 ms] executing: [D:\apps\FlutterSDK\flutter/] git tag --points-at HEAD
[ +585 ms] Exit code 0 from: git tag --points-at HEAD
[ +1 ms] 1.22.4
[ +18 ms] executing: [D:\apps\FlutterSDK\flutter/] git rev-parse
--abbrev-ref --symbolic @{u}
[ +57 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [D:\apps\FlutterSDK\flutter/] git ls-remote --get-url origin
[ +50 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +92 ms] executing: [D:\apps\FlutterSDK\flutter/] git rev-parse
--abbrev-ref HEAD
[ +53 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] stable
[ +89 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required,
skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping
update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +7 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required,
skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping
update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping
update.
[ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required,
skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required,
skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required,
skipping update.
[ +102 ms] Artifact Instance of 'MaterialFonts' is not required, skipping
update.
[ +8 ms] Artifact Instance of 'GradleWrapper' is not required, skipping
update.
[ +19 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required,
skipping update.
[ +6 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping
update.
[ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping
update.
[ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required,
skipping update.
[ +46 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required,
skipping update.
[ +27 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required,
skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required,
skipping update.
[ +42 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[ +26 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[ +4 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[ +2 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[ +38 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[ +1 ms] Artifact Instance of 'FontSubsetArtifacts' is not required,
skipping update.
[ +237 ms] Found plugin facebook_audience_network at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\facebook_audience_network-0.7.1
[ +42 ms] Found plugin onesignal_flutter at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\onesignal_flutter-2.6.2
[ +12 ms] Found plugin path_provider_linux at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\path_provider_linux-0.0.1+2
[ +32 ms] Found plugin path_provider_windows at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\path_provider_windows-0.0.4+3
[ +50 ms] Found plugin share at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org\share-0.6.5+4
[ +12 ms] Found plugin shared_preferences at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences-0.5.12+4
[ +21 ms] Found plugin shared_preferences_linux at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences_linux-0.0.2+4
[ +3 ms] Found plugin shared_preferences_macos at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences_macos-0.0.1+11
[ +53 ms] Found plugin shared_preferences_web at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences_web-0.1.2+7
[ +7 ms] Found plugin shared_preferences_windows at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences_windows-0.0.1+3
[ +38 ms] Found plugin url_launcher at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher-5.7.6
[ +2 ms] Found plugin url_launcher_linux at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher_linux-0.0.1+3
[ +9 ms] Found plugin url_launcher_macos at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher_macos-0.0.1+8
[ +31 ms] Found plugin url_launcher_web at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher_web-0.1.4+1
[ +29 ms] Found plugin url_launcher_windows at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher_windows-0.0.1+1
[ +13 ms] Found plugin webview_flutter at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\webview_flutter-1.0.7
[ +253 ms] Found plugin facebook_audience_network at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\facebook_audience_network-0.7.1
[ +15 ms] Found plugin onesignal_flutter at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\onesignal_flutter-2.6.2
[ +23 ms] Found plugin path_provider_linux at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\path_provider_linux-0.0.1+2
[ +7 ms] Found plugin path_provider_windows at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\path_provider_windows-0.0.4+3
[ +34 ms] Found plugin share at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org\share-0.6.5+4
[ +28 ms] Found plugin shared_preferences at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences-0.5.12+4
[ +27 ms] Found plugin shared_preferences_linux at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences_linux-0.0.2+4
[ +3 ms] Found plugin shared_preferences_macos at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences_macos-0.0.1+11
[ +81 ms] Found plugin shared_preferences_web at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences_web-0.1.2+7
[ +29 ms] Found plugin shared_preferences_windows at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\shared_preferences_windows-0.0.1+3
[ +9 ms] Found plugin url_launcher at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher-5.7.6
[ +4 ms] Found plugin url_launcher_linux at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher_linux-0.0.1+3
[ +33 ms] Found plugin url_launcher_macos at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher_macos-0.0.1+8
[ +30 ms] Found plugin url_launcher_web at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher_web-0.1.4+1
[ +25 ms] Found plugin url_launcher_windows at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\url_launcher_windows-0.0.1+1
[ +4 ms] Found plugin webview_flutter at
D:\apps\FlutterSDK\flutter.pub-cache\hosted\pub.dartlang.org
\webview_flutter-1.0.7
[ +105 ms] Generating
D:\apps\flutter\simdata\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +96 ms] Running Gradle task 'bundleRelease'...
[ +4 ms] gradle.properties already sets android.enableR8
[ +6 ms] Using gradle from D:\apps\flutter\simdata\android\gradlew.bat.
[ +1 ms] D:\apps\flutter\simdata\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +12 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java
-version
[ +300 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)
[ +66 ms] executing: [D:\apps\flutter\simdata\android/]
D:\apps\flutter\simdata\android\gradlew.bat -Pverbose=true
-Ptarget-platform=android-arm,android-arm64,android-x64
-Ptarget=lib\main.dart -Ptrack-widget-creation=true -Pshrink=true
-Ptree-shake-icons=true
bundleRelease
[+3577 ms] > Configure project :app
[ +3 ms] WARNING: The option setting 'android.enableR8=true' is deprecated.
[ +81 ms] It will be removed in version 5.0 of the Android Gradle plugin.
[ +1 ms] You will no longer be able to disable R8
[+1174 ms] > Task :app:cleanMergeReleaseAssets UP-TO-DATE
[ +18 ms] > Task :app:preBuild UP-TO-DATE
[ +171 ms] > Task :app:extractProguardFiles
[ +2 ms] > Task :app:preReleaseBuild
[ +211 ms] > Task :app:mergeReleaseShaders
[ +91 ms] > Task :app:compileReleaseShaders NO-SOURCE
[ +4 ms] > Task :app:generateReleaseAssets UP-TO-DATE
[+1988 ms] > Task :app:compileFlutterBuildRelease
[ +3 ms] [ +153 ms] executing: [D:\apps\FlutterSDK\flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[ +29 ms] [ +89 ms] Exit code 0 from: git -c log.showSignature=false log
-n 1 --pretty=format:%H
[ +1 ms] [ ] 1aafb3a
<1aafb3a>
[ +1 ms] [ ] executing: [D:\apps\FlutterSDK\flutter/] git tag --points-at
HEAD
[ +1 ms] [ +61 ms] Exit code 0 from: git tag --points-at HEAD
[ +1 ms] [ ] 1.22.4
[ ] [ +17 ms] executing: [D:\apps\FlutterSDK\flutter/] git rev-parse
--abbrev-ref --symbolic @{u}
[ ] [ +62 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/stable
[ +1 ms] [ ] executing: [D:\apps\FlutterSDK\flutter/] git ls-remote
--get-url origin
[ +91 ms] [ +63 ms] Exit code 0 from: git ls-remote --get-url origin
[ +22 ms] [ ] https://github.com/flutter/flutter.git
[ +30 ms] [ +101 ms] executing: [D:\apps\FlutterSDK\flutter/] git
rev-parse --abbrev-ref HEAD
[ +30 ms] [ +47 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +24 ms] [ ] stable
[ +1 ms] [ +48 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.
[ +63 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required,
skipping update.
[ +32 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required,
skipping update.
[ +1 ms] [ +4 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.
[ ] [ ] 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.
[ ] [ +22 ms] Artifact Instance of 'MaterialFonts' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'GradleWrapper' is not required,
skipping update.
[ ] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not
required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not
required, skipping update.
[ +51 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required,
skipping update.
[ +25 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping
update.
[ +28 ms] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not
required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required,
skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not
required, skipping update.
[ +74 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.
[ +72 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required,
skipping update.
[ +3 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.
[ +41 ms] [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required,
skipping update.
[ +1 ms] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required,
skipping update.
[ +2 ms] [ +138 ms] Initializing file store
[ +1 ms] [ +41 ms] Skipping target: gen_localizations
[ ] [ +10 ms] kernel_snapshot: Starting due to {}
[ +1 ms] [ +42 ms]
D:\apps\FlutterSDK\flutter\bin\cache\dart-sdk\bin\dart.exe
--disable-dart-dev
D:\apps\FlutterSDK\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot
--sdk-root
D:\apps\FlutterSDK\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk_product/
--target=flutter
-Ddart.developer.causal_async_stacks=false -Ddart.vm.profile=false
-Ddart.vm.product=true --bytecode-options=source-positions --aot --tfa
--packages D:\apps\flutter\simdata.packages --output-dill
D:\apps\flutter\simdata.dart_tool\flutter_build\549306b9041d68f2083e83e3453480d4\app.dill
--depfile
D:\apps\flutter\simdata.dart_tool\flutter_build\549306b9041d68f2083e83e3453480d4\kernel_snapshot.d
package:simdata/main.dart
[+2046 ms] [+2894 ms] ../../FlutterSDK/flutter/.pub-cache/hosted/
pub.dartlang.org/path_provider_linux-0.0.1+2/lib/path_provider_linux.dart:7:8
:
Error: Error when reading '../../FlutterSDK/flutter/.pub-cache/hosted/
pub.dartlang.org/xdg_directories-0.1.0/lib/xdg_directories.dart': The
systemcannot find the path specified.
[ +4 ms] [ +2 ms] import 'package:xdg_directories/xdg_directories.dart' as
xdg;
[ +205 ms] [ ] ^
[+5578 ms] [+5765 ms] ../../FlutterSDK/flutter/.pub-cache/hosted/
pub.dartlang.org/path_provider_linux-0.0.1+2/lib/path_provider_linux.dart:29:47
:
Error: Getter not found: 'dataHome'.
[ +3 ms] [ ] final directory = Directory(path.join(xdg.dataHome.path,
processName));
[ +45 ms] [ ] ^^^^^^^^
[ +2 ms] [ +1 ms] ../../FlutterSDK/flutter/.pub-cache/hosted/
pub.dartlang.org/path_provider_linux-0.0.1+2/lib/path_provider_linux.dart:39:25
:
Error: Method not found: 'getUserDirectory'.
[ +77 ms] [ ] return Future.value(xdg.getUserDirectory('DOCUMENTS').path);
[ +2 ms] [ ] ^^^^^^^^^^^^^^^^
[ +1 ms] [ ] ../../FlutterSDK/flutter/.pub-cache/hosted/
pub.dartlang.org/path_provider_linux-0.0.1+2/lib/path_provider_linux.dart:44:25
:
Error: Method not found: 'getUserDirectory'.
[ +52 ms] [ ] return Future.value(xdg.getUserDirectory('DOWNLOAD').path);
[ +1 ms] [ ] ^^^^^^^^^^^^^^^^
[+5311 ms] [+5515 ms] Persisting file store
[ +2 ms] [ +3 ms] Done persisting file store
[ +35 ms] [ +4 ms] Target kernel_snapshot failed: Exception
[ +58 ms] #0 KernelSnapshot.build
(package:flutter_tools/src/build_system/targets/common.dart:267:7)
[ +24 ms]
[ +46 ms] #1 <#1>
_BuildInstance._invokeInternal
(package:flutter_tools/src/build_system/build_system.dart:801:27)
[ +4 ms] #2 <#2> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +1 ms] #3 <#3>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +1 ms] #4 <#4>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +2 ms] #5 <#5>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #6 <#6>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ +1 ms] #7 <#7>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #8 <#8>
Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
[ +68 ms] #9 <#9> _rootRun
(dart:async/zone.dart:1190:13)
[ +28 ms] #10 <#10>
_CustomZone.run (dart:async/zone.dart:1093:19)
[ +3 ms] #11 <#11>
_CustomZone.runGuarded (dart:async/zone.dart:997:7)
[ +2 ms] #12 <#12>
_CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
[ +12 ms] #13 <#13> _microtaskLoop
(dart:async/schedule_microtask.dart:41:21)
[ +27 ms] #14 <#14>
_startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
[ +23 ms] #15 <#15>
_runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
[ +1 ms] #16 <#16>
_RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:169:5)
[ ] [ +8 ms]
[ +1 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
[ +54 ms] #1 <#1>
AssembleCommand.runCommand
(package:flutter_tools/src/commands/assemble.dart:238:7)
[ +23 ms] #2 <#2> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +1 ms] #3 <#3>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +25 ms] #4 <#4>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +1 ms] #5 <#5>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #6 <#6>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ +1 ms] #7 <#7>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #8 <#8>
_AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ +43 ms] #9 <#9>
_completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ +25 ms] #10 <#10>
FlutterBuildSystem.build
(package:flutter_tools/src/build_system/build_system.dart)
[ +1 ms] #11 <#11> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +1 ms] #12 <#12>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +1 ms] #13 <#13>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +1 ms] #14 <#14>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #15 <#15>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #16 <#16>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #17 <#17>
_AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ +43 ms] #18 <#18>
_completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ +24 ms] #19 <#19>
_BuildInstance.invokeTarget
(package:flutter_tools/src/build_system/build_system.dart)
[ +1 ms] #20 <#20> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +4 ms] #21 <#21>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +36 ms] #22 <#22>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +2 ms] #23 <#23>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +53 ms] #24 <#24>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #25 <#25>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #26 <#26> Future.wait.
(dart:async/future.dart:414:23)
[ ] #27 <#27> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +1 ms] #28 <#28>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +42 ms] #29 <#29>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +28 ms] #30 <#30>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #31 <#31>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #32 <#32>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #33 <#33>
_AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ +1 ms] #34 <#34>
_completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ ] #35 <#35>
_BuildInstance.invokeTarget
(package:flutter_tools/src/build_system/build_system.dart)
[ ] #36 <#36> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +1 ms] #37 <#37>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +42 ms] #38 <#38>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +26 ms] #39 <#39>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #40 <#40>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #41 <#41>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #42 <#42> Future.wait.
(dart:async/future.dart:414:23)
[ +1 ms] #43 <#43> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +1 ms] #44 <#44>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #45 <#45>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +1 ms] #46 <#46>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ ] #47 <#47>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ +1 ms] #48 <#48>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +46 ms] #49 <#49>
_AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ +36 ms] #50 <#50>
_completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ +1 ms] #51 <#51>
_BuildInstance.invokeTarget
(package:flutter_tools/src/build_system/build_system.dart)
[ +1 ms] #52 <#52> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +1 ms] #53 <#53>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +1 ms] #54 <#54>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ ] #55 <#55>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +1 ms] #56 <#56>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #57 <#57>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #58 <#58> Future.wait.
(dart:async/future.dart:414:23)
[ ] #59 <#59> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +25 ms] #60 <#60>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ +1 ms] #61 <#61>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +1 ms] #62 <#62>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ ] #63 <#63>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #64 <#64>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ ] #65 <#65>
_AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ +1 ms] #66 <#66>
_completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ +54 ms] #67 <#67>
_BuildInstance._invokeInternal
(package:flutter_tools/src/build_system/build_system.dart)
[ +26 ms] #68 <#68>
_asyncErrorWrapperHelper.errorCallback
(dart:async-patch/async_patch.dart:91:64)
[ +1 ms] #69 <#69>
_rootRunBinary (dart:async/zone.dart:1214:47)
[ +1 ms] #70 <#70>
_CustomZone.runBinary (dart:async/zone.dart:1107:19)
[ ] #71 <#71>
_FutureListener.handleError (dart:async/future_impl.dart:157:20)
[ +1 ms] #72 <#72>
Future._propagateToListeners.handleError
(dart:async/future_impl.dart:708:47)
[ ] #73 <#73>
Future._propagateToListeners (dart:async/future_impl.dart:729:24)
[ +1 ms] #74 <#74>
Future._completeError (dart:async/future_impl.dart:537:5)
[ ] #75 <#75>
_AsyncAwaitCompleter.completeError (dart:async-patch/async_patch.dart:47:15)
[ +1 ms] #76 <#76>
KernelSnapshot.build
(package:flutter_tools/src/build_system/targets/common.dart)
[ ] #77 <#77> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ +1 ms] #78 <#78>
_CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #79 <#79>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +1 ms] #80 <#80>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ +42 ms] #81 <#81>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ +31 ms] #82 <#82>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #83 <#83>
_AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ +25 ms] #84 <#84>
_completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ +1 ms] #85 <#85>
KernelCompiler.compile (package:flutter_tools/src/compile.dart)
[ ] #86 <#86> _rootRunUnary
(dart:async/zone.dart:1198:47)
[ ] #87 <#87> _CustomZone.runUnary
(dart:async/zone.dart:1100:19)
[ ] #88 <#88>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +1 ms] #89 <#89>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
[ ] #90 <#90>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ +1 ms] #91 <#91>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +43 ms] #92 <#92>
Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
[ +24 ms] #93 <#93> _rootRun
(dart:async/zone.dart:1190:13)
[ +1 ms] #94 <#94>
_CustomZone.run (dart:async/zone.dart:1093:19)
[ ] #95 <#95>
_CustomZone.runGuarded (dart:async/zone.dart:997:7)
[ +1 ms] #96 <#96>
_CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
[ +1 ms] #97 <#97>
_microtaskLoop (dart:async/schedule_microtask.dart:41:21)
[ ] #98 <#98>
_startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
[ +1 ms] #99 <#99>
_runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
[ +1 ms] #100 <#100>
_RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:169:5)
[ +1 ms] FAILURE: Build failed with an exception.
[ +1 ms] * Where:
[ +41 ms] Script
'D:\apps\FlutterSDK\flutter\packages\flutter_tools\gradle\flutter.gradle'
line: 904
[ +27 ms] * What went wrong:
[ +1 ms] Execution failed for task ':app:compileFlutterBuildRelease'.
[ +2 ms] > Process 'command 'D:\apps\FlutterSDK\flutter\bin\flutter.bat''
finished with non-zero exit value 1
[ +1 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.
[ +1 ms] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 21s
[ +26 ms] [ +73 ms] "flutter assemble" took 14,521ms.
[ +1 ms] [ +2 ms] ensureAnalyticsSent: 1ms
[ +1 ms] [ +5 ms] Running shutdown hooks
[ ] [ ] Shutdown hooks complete
[ +30 ms] [ +1 ms] exiting with code 1
[ +1 ms] > Task :app:compileFlutterBuildRelease FAILED
[ +25 ms] Deprecated Gradle features were used in this build, making it
incompatible with Gradle 7.0.
[ +2 ms] Use '--warning-mode all' to show the individual deprecation
warnings.
[ +1 ms] See
https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
[ ] 4 actionable tasks: 3 executed, 1 up-to-date
[ +19 ms] Running Gradle task 'bundleRelease'... (completed in 23.2s)
[ +16 ms] "flutter appbundle" took 25,000ms.
[ +26 ms] Gradle task bundleRelease failed with exit code 1
[ +20 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 <#1> buildGradleApp
(package:flutter_tools/src/android/gradle.dart:416:7)
#2 <#2> _rootRunUnary
(dart:async/zone.dart:1198:47)
#3 <#3> _CustomZone.runUnary
(dart:async/zone.dart:1100:19)
#4 <#4>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#5 <#5>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
#6 <#6>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#7 <#7>
Future._completeWithValue (dart:async/future_impl.dart:529:5)
#8 <#8>
_AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#9 <#9> _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
#10 <#10>
_DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
#11 <#11> _rootRunUnary
(dart:async/zone.dart:1198:47)
#12 <#12> _CustomZone.runUnary
(dart:async/zone.dart:1100:19)
#13 <#13>
_FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#14 <#14>
Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
#15 <#15>
Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#16 <#16> Future._addListener.
(dart:async/future_impl.dart:393:9)
#17 <#17> _rootRun
(dart:async/zone.dart:1190:13)
#18 <#18> _CustomZone.run
(dart:async/zone.dart:1093:19)
#19 <#19> _CustomZone.runGuarded
(dart:async/zone.dart:997:7)
#20 <#20>
_CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#21 <#21> _microtaskLoop
(dart:async/schedule_microtask.dart:41:21)
#22 <#22> _startMicrotaskLoop
(dart:async/schedule_microtask.dart:50:5)
#23 <#23>
_runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#24 <#24>
_RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:169:5)
[ +273 ms] ensureAnalyticsSent: 260ms
[ +3 ms] Running shutdown hooks
[ +19 ms] Shutdown hooks complete
[ +1 ms] exiting with code 1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJCAQBP4KG7MRHJZEDFQOLST4LMHANCNFSM4SIKYDJA>
.
|
I am getting this error when I use Github actions for CI. Its getting failed with below error:-- FAILURE: Build failed with an exception.
On my machine app works on debug mode with the following -verbose details PS C:\src\vscode\sharingiscaring> flutter build appbundle --verbose
[ +7 ms] > Task :cloud_functions:generateReleaseBuildConfig UP-TO-DATE **> [ +3 ms] Note:
[ +5 ms] > Task :cloud_functions:compileReleaseJavaWithJavac **> [ +42 ms] Note:
[ +48 ms] > Task :firebase_auth:javaPreCompileRelease **> [ +3 ms] Note:
[ +6 ms] > Task :firebase_storage:generateReleaseBuildConfig **> [ +1 ms] Note:
[ +82 ms] Note: Recompile with -Xlint:deprecation for details. **> [ +3 ms] Note:
[ +556 ms] > Task :image_picker:compileReleaseJavaWithJavac **> [ +5 ms] Note:
[ +7 ms] > Task :stripe_payment:generateReleaseBuildConfig **> [ +31 ms] Note:
[ +55 ms] Note: Recompile with -Xlint:deprecation for details. |
FAILURE: Build failed with an exception.
|
any solution |
lib/config/ps_config.dart:41:15: Error: 'showAdMob' is already declared in this scope. FAILURE: Build failed with an exception.
BUILD FAILED in 2m 23s I am getting this error while trying to run flutter build appbundle. any help? |
Same problem here, any resolution? |
I am facing the same problem. |
I was facing the same issue for months till I realized that it was a permission issue. |
I was facing the same issue for months till I realized that it was a permission issue. |
I was facing the same issue for months till I realized that it was a permission issue. |
Try figuring out your pubspec.yaml file and for its basic syntax. or look at sample below if you are not able to create build now try to look into your flutter version and use stable version only. Hope this helps |
try running
|
anyone who has found a solution yet? |
Try figuring out your pubspec.yaml file and for its basic syntax. or look at sample below if you are not able to create build now try to look into your flutter version and use stable version only. Hope this helps |
I recommend you restore only the Yaml folder and ¡voila! |
You may import the wrong package: import 'dart:html'; delete will be ok |
I
The problem was, I think, because my computer shut after AC was disconnected. |
Trust me! It worked just by moving files to location D: Really, Just give it a try. |
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 |
Hi Team,
I am getting the below error while running the flutter build appbundle. Below is the error:
Warning: Missing asset in fonts for Galada
FAILURE: Build failed with an exception.
Where:
Script 'G:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904
What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
Try:
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.
Get more help at https://help.gradle.org
BUILD FAILED in 32s
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done 33.1s
Gradle task bundleRelease failed with exit code 1
Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.23.0-8.0.pre.167, on Microsoft Windows [Version 10.0.18363.1082], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.49.2)
[√] Connected device (1 available)
• No issues found!
I Switched to Beta channel as well but it didn't help. Getting the same error.
[√] Flutter (Channel beta, 1.22.0, on Microsoft Windows [Version 10.0.18363.1082], locale en-IN)
• Flutter version 1.22.0 at G:\flutter
• Framework revision d408d30 (9 days ago), 2020-09-29 11:49:17 -0700
• Engine revision 5babba6
• Dart version 2.10.0
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at G:\android-sdk
• Platform android-29, build-tools 30.0.2
• ANDROID_SDK_ROOT = G:\android-sdk
• Java binary at: G:\android\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at G:\android
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.49.2)
• VS Code at C:\Users\Jeet\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.15.0
[√] Connected device (1 available)
• GM1901 (mobile) • 5c59ce46 • android-arm64 • Android 10 (API 29)
• No issues found!
The text was updated successfully, but these errors were encountered: