I use cirrusci/flutter:stable-web:
FROM cirrusci/flutter:stable-web
RUN flutter create flutter_web_test
RUN cd flutter_web_test
RUN flutter test --platform chrome -v
ENTRYPOINT [ "/bin/bash" ]
And get endless process:
cirrus#eaf974f2ad7b:~/flutter_web_test$ flutter test --platform chrome -v
...
[ +28 ms] executing: [/home/cirrus/sdks/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[+13418 ms] Starting daemon...
[+1515 ms] About to build [web, test]...
[ +9 ms] Running build...
[ +308 ms] Running build completed, took 167ms
[ +2 ms] Caching finalized dependency graph...
[ +17 ms] Caching finalized dependency graph completed, took 198ms
[ +7 ms] Succeeded after 377ms with 0 outputs (0 actions)
00:00 +0: loading /home/cirrus/flutter_web_test/test/widget_test.dart [ +778 ms] Serving tests at http://localhost:43001/static/index.html?managerUrl=ws%3A%2F%2Flocalhost%3A43001%2F0&debug=false
02:13 +0: loading /home/cirrus/flutter_web_test/test/widget_test.dart
How I can run flutter tests on chrome platform in docker?
I have a huge project built with flutter, I left the project for a couple of days, Now when I try to run the app I face this error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
> Problems reading data from Binary store in C:\Users\mrabi\AppData\Local\Temp\gradle7134895285543263727.bin offset 373739 exists? true
* 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 44s
Exception: Gradle task assembleDebug failed with exit code 1
I tried to flutter clean,
flutter pub cache repair,
even removing the flutter version and reinstall it again. And did not work.
Any solution except creating a new project, because I have a lot of implementation.
my Flutter version is 1.22.6
sdk: ">=2.2.2 <3.0.0"
flutter run --verbose:
[ +81 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] 9b2d32b605630f28625709ebd9d78ab3016b2bf6
[ +1 ms] executing: [C:\Users\mrabi\fvm\default/] git tag --points-at HEAD
[ +82 ms] Exit code 0 from: git tag --points-at HEAD
[ ] 1.22.6
[ +9 ms] executing: [C:\Users\mrabi\fvm\default/] git rev-parse --abbrev-ref --symbolic #{u}
[ +55 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/stable
[ ] executing: [C:\Users\mrabi\fvm\default/] git ls-remote --get-url origin
[ +50 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +85 ms] executing: [C:\Users\mrabi\fvm\default/] git rev-parse --abbrev-ref HEAD
[ +52 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +85 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] 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.
[ +4 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.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +27 ms] executing: C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[ +54 ms] List of devices attached
5200e3d5f0466523 device product:j6ltecis model:SM_J600F device:j6lte transport_id:1
[ +9 ms] C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 5200e3d5f0466523 shell getprop
[ +132 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +6 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +3 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.
[ ] 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.
[ +158 ms] Found plugin connectivity at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity-0.4.9+5\
[ +9 ms] Found plugin connectivity_for_web at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity_for_web-0.3.1+4\
[ +7 ms] Found plugin connectivity_macos at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity_macos-0.1.0+7\
[ +8 ms] Found plugin device_info at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\device_info-1.0.0\
[ +17 ms] Found plugin firebase_analytics at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-6.3.0\
[ +6 ms] Found plugin firebase_analytics_web at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics_web-0.1.1\
[ +4 ms] Found plugin firebase_core at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core-0.5.3\
[ +5 ms] Found plugin firebase_core_web at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core_web-0.2.1+1\
[ +3 ms] Found plugin firebase_messaging at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_messaging-6.0.16\
[ +9 ms] Found plugin flutter_device_locale at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_device_locale-0.4.0\
[ +2 ms] Found plugin flutter_image_compress at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_image_compress-0.7.0\
[ +3 ms] Found plugin flutter_local_notifications at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_local_notifications-1.5.0+1\
[ +6 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\
[ +7 ms] Found plugin flutter_uploader at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_uploader-1.2.1\
[ +3 ms] Found plugin geolocator at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\geolocator-6.2.1\
[ +3 ms] Found plugin geolocator_web at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\geolocator_web-1.0.1\
[ +3 ms] Found plugin get_version at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\get_version-0.2.2\
[ +4 ms] Found plugin google_maps_flutter at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.33\
[ +5 ms] Found plugin image_picker at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.6.7+22\
[ +10 ms] Found plugin location at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location-3.2.4\
[ +2 ms] Found plugin location_web at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location_web-1.0.1\
[ +6 ms] Found plugin package_info at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\package_info-0.4.3+4\
[ +7 ms] Found plugin path_provider at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.6.28\
[ +2 ms] Found plugin path_provider_linux at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_linux-0.0.1+2\
[ +2 ms] Found plugin path_provider_macos at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+8\
[ +3 ms] Found plugin path_provider_windows at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_windows-0.0.4+3\
[ +5 ms] Found plugin permission_handler at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\permission_handler-5.1.0+2\
[ +11 ms] Found plugin shared_preferences at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\
[ +3 ms] Found plugin shared_preferences_linux at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_linux-0.0.2+4\
[ +3 ms] Found plugin shared_preferences_macos at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+11\
[ +3 ms] Found plugin shared_preferences_web at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_web-0.1.2+7\
[ +2 ms] Found plugin shared_preferences_windows at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_windows-0.0.2+3\
[ +3 ms] Found plugin sms_autofill at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\sms_autofill-1.3.1\
[ +8 ms] Found plugin store_redirect at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\store_redirect-1.0.2\
[ +10 ms] Found plugin url_launcher at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.7.10\
[ +22 ms] Found plugin url_launcher_linux at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_linux-0.0.1+4\
[ +4 ms] Found plugin url_launcher_macos at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_macos-0.0.1+9\
[ +3 ms] Found plugin url_launcher_web at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_web-0.1.5+3\
[ +2 ms] Found plugin url_launcher_windows at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_windows-0.0.1+3\
[ +123 ms] Found plugin connectivity at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity-0.4.9+5\
[ +2 ms] Found plugin connectivity_for_web at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity_for_web-0.3.1+4\
[ +2 ms] Found plugin connectivity_macos at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity_macos-0.1.0+7\
[ +6 ms] Found plugin device_info at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\device_info-1.0.0\
[ +15 ms] Found plugin firebase_analytics at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-6.3.0\
[ +6 ms] Found plugin firebase_analytics_web at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics_web-0.1.1\
[ +2 ms] Found plugin firebase_core at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core-0.5.3\
[ +3 ms] Found plugin firebase_core_web at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core_web-0.2.1+1\
[ +2 ms] Found plugin firebase_messaging at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_messaging-6.0.16\
[ +8 ms] Found plugin flutter_device_locale at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_device_locale-0.4.0\
[ +2 ms] Found plugin flutter_image_compress at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_image_compress-0.7.0\
[ +3 ms] Found plugin flutter_local_notifications at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_local_notifications-1.5.0+1\
[ +4 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\
[ +5 ms] Found plugin flutter_uploader at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_uploader-1.2.1\
[ +3 ms] Found plugin geolocator at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\geolocator-6.2.1\
[ +2 ms] Found plugin geolocator_web at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\geolocator_web-1.0.1\
[ +1 ms] Found plugin get_version at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\get_version-0.2.2\
[ +2 ms] Found plugin google_maps_flutter at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.33\
[ +9 ms] Found plugin image_picker at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.6.7+22\
[ +5 ms] Found plugin location at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location-3.2.4\
[ +2 ms] Found plugin location_web at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location_web-1.0.1\
[ +7 ms] Found plugin package_info at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\package_info-0.4.3+4\
[ +3 ms] Found plugin path_provider at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.6.28\
[ +2 ms] Found plugin path_provider_linux at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_linux-0.0.1+2\
[ +2 ms] Found plugin path_provider_macos at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+8\
[ +3 ms] Found plugin path_provider_windows at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_windows-0.0.4+3\
[ +5 ms] Found plugin permission_handler at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\permission_handler-5.1.0+2\
[ +10 ms] Found plugin shared_preferences at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\
[ +4 ms] Found plugin shared_preferences_linux at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_linux-0.0.2+4\
[ +5 ms] Found plugin shared_preferences_macos at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+11\
[ +4 ms] Found plugin shared_preferences_web at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_web-0.1.2+7\
[ +1 ms] Found plugin shared_preferences_windows at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_windows-0.0.2+3\
[ +4 ms] Found plugin sms_autofill at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\sms_autofill-1.3.1\
[ +4 ms] Found plugin store_redirect at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\store_redirect-1.0.2\
[ +7 ms] Found plugin url_launcher at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.7.10\
[ +2 ms] Found plugin url_launcher_linux at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_linux-0.0.1+4\
[ +2 ms] Found plugin url_launcher_macos at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_macos-0.0.1+9\
[ +3 ms] Found plugin url_launcher_web at C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_web-0.1.5+3\
[ +1 ms] Found plugin url_launcher_windows at
C:\Users\mrabi\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_windows-0.0.1+3\
[ +35 ms] Generating C:\a
projects\develop-v1-pure\waddini\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +31 ms] ro.hardware = samsungexynos7870
[ +51 ms] Starting incremental build...
[ +3 ms] Initializing file store
[ +14 ms] Skipping target: gen_localizations
[ +6 ms] complete
[ +5 ms] Launching lib\main.dart on SM J600F in debug mode...
[ +8 ms] C:\Users\mrabi\fvm\default\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\mrabi\fvm\default\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\mrabi\fvm\default\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\mrabi\AppData\Local\Temp\flutter_tools.cb8bd1c6\flutter_tool.2dcffc35\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
[ +21 ms] executing: C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 5200e3d5f0466523 shell -x logcat -v time -t
1
[ +185 ms] Exit code 0 from: C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 5200e3d5f0466523 shell -x logcat -v
time -t 1
[ +1 ms] --------- beginning of main
07-07 16:39:04.349 D/BoundBrokerSvc(13990): onUnbind: Intent { act=com.google.android.gms.measurement.START
pkg=com.google.android.gms }
[ +2 ms] executing: C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 5200e3d5f0466523 shell -x logcat -v time -t
1
[ +188 ms] Exit code 0 from: C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 5200e3d5f0466523 shell -x logcat -v
time -t 1
[ +2 ms] --------- beginning of main
07-07 16:39:05.202 D/bauth_FPBAuthService( 3064): FPBAuthService, 11288
[ +24 ms] <- compile package:waddini/main.dart
[ +27 ms] executing: C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[ +49 ms] Android Debug Bridge version 1.0.41
Version 31.0.2-7242960
Installed as C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe
[ +3 ms] executing: C:\Users\mrabi\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[ +48 ms] Building APK
[ +27 ms] Running Gradle task 'assembleDebug'...
[ +4 ms] gradle.properties already sets `android.enableR8`
[ +6 ms] Using gradle from C:\a projects\develop-v1-pure\waddini\android\gradlew.bat.
[ +2 ms] C:\a projects\develop-v1-pure\waddini\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +21 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +140 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ ] openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
OpenJDK 64-Bit Server VM (build 11.0.8+10-b944.6842174, mixed mode)
[ +4 ms] executing: [C:\a projects\develop-v1-pure\waddini\android/] C:\a projects\develop-v1-pure\waddini\android\gradlew.bat
-Pverbose=true -Ptarget-platform=android-arm -Ptarget=C:\a projects\develop-v1-pure\waddini\lib\main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+55447 ms] FAILURE: Build failed with an exception.
[ +3 ms] * What went wrong:
[ +1 ms] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
[ +1 ms] > Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
[ +1 ms] > Problems reading data from Binary store in C:\Users\mrabi\AppData\Local\Temp\gradle12309172077266440599.bin offset
373739 exists? true
[ +1 ms] * 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.
[ +2 ms] * Get more help at https://help.gradle.org
[ +2 ms] BUILD FAILED in 55s
[ +572 ms] Running Gradle task 'assembleDebug'... (completed in 56.2s)
[ +7 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +3 ms] "flutter run" took 57,921ms.
[ +6 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:607:7)
<asynchronous suspension>
#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.<anonymous closure> (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.<anonymous closure> (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)
[ +267 ms] ensureAnalyticsSent: 257ms
[ +2 ms] Running shutdown hooks
[ +1 ms] Shutdown hook priority 4
[ +3 ms] Shutdown hooks complete
[ +3 ms] exiting with code 1```
Not sure what is going on, but when I hot restart my flutter app crashes using iOS simulator. Hot restart works fine on an Android simulator. I even tried to uninstall and install XCode again.
Here is what gets printed on the terminal
[ +459 ms] Hot restart performed in 924ms.
[ +3 ms] Restarted application in 936ms.
[ +900 ms] Service protocol connection closed.
[ ] Lost connection to device.
[ +3 ms] DevFS: Deleting filesystem on the device (file:///Users/frederickmfinanga/Library/Developer/CoreSimulator/Devices/775342AF-E52F-46EB-9CDB-9C29720FC357/data/Containers/Data/Application/D093EF45-D895-481C-B965-CA56F7881A5C/tmp/the_hair_routinenSBAWo/the_hair_routine/)
Failed to send request: {"jsonrpc":"2.0","id":"46","method":"getMemoryUsage","params":{"isolateId":"isolates/4165970133496907"}}
[ +257 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[ +1 ms] "flutter run" took 646,839ms.
[ +259 ms] ensureAnalyticsSent: 242ms
[ +1 ms] Running shutdown hooks
[ ] Shutdown hook priority 4
[ ] Shutdown hooks complete
[ ] exiting with code 0
I had the same issue. After two days of debugging I have just found out it was caused by one of my dependencies. It is firebase_auth package version 1.1.3.
As I can see the issue is resolved in firebase_auth 1.1.4 released on 10th of May 2021.
So just update to firebase_auth 1.1.4 if you use this package
I faced something similar a few days back.
There can be two possibilities why it is happening :
You have not granted permission for something you are trying to access (like getting the location/camera ). If this is the case then read the docs of the package you might be using and add the permissions programatically.
Sometimes our podfile reference gets corrupted. (This is what happened in my case). For this delete your podfile.lock file (ios/podfile.lock). For a fresh start you can also delete your pubspec.lock as well. And then do a flutter pub get or simply run your app.
Suddenly my emulators and physical device fail whenever launching applications - I have tried a bunch of different SDKs on new virtual devices in Android Studio and my Pixel 3a phone but it keeps failing on run or debug. It works fine on Chrome. I have tried editing my gradle files in various ways using code I found in similar questions but nothing works so far.
Here is what I get in debug console:
Execution failed for task ':app:compressDebugAssets'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
Everything is looking good on Flutter Doctor.
Doctor summary (to see all details, run flutter doctor -v):
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.54.3)
[√] Connected device (3 available)
• No issues found!
PS I:\Flutter\build> flutter doctor -v
[√] Flutter (Channel stable, 2.0.1, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
• Flutter version 2.0.1 at C:\Users\BOXXUser\flutter
• Framework revision c5a4b4029c (3 weeks ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441def69
• Dart version 2.12.0
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\BOXXUser\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.54.3)
• VS Code at C:\Users\BOXXUser\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.20.0
[√] Connected device (3 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.57
• No issues found!
This is using a new install so pubspec file is autogenerated.
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
dev_dependencies:
flutter_test:
sdk: flutter
I have tried everything from Nougat to R in Android Studio SDK installer.
Here is the output of flutter build apk -v
PS I:\Flutter\build> flutter build apk -v
[ +81 ms] executing: [C:\Users\BOXXUser\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +73 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[ +1 ms] executing: [C:\Users\BOXXUser\flutter/] git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[ +91 ms] Exit code 0 from: git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[ ] 2.0.1
[ +45 ms] executing: [C:\Users\BOXXUser\flutter/] git rev-parse --abbrev-ref --symbolic #{u}
[ +42 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/stable
[ ] executing: [C:\Users\BOXXUser\flutter/] git ls-remote --get-url origin
[ +45 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +85 ms] executing: [C:\Users\BOXXUser\flutter/] git rev-parse --abbrev-ref HEAD
[ +59 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +79 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.
[ +4 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.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +6 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +78 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ +3 ms] 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.
[ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] 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.
[ ] 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.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] 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.
[ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +65 ms] Skipping pub get: version match.
[ +188 ms] Generating I:\Flutter\build\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +99 ms] Building without sound null safety
[ +1 ms] For more information see https://dart.dev/null-safety/unsound-null-safety
[ +65 ms] Running Gradle task 'assembleRelease'...
[ +8 ms] Using gradle from I:\Flutter\build\android\gradlew.bat.
[ +2 ms] I:\Flutter\build\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +13 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +106 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ ] 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)
[ +3 ms] executing: [I:\Flutter\build\android/] I:\Flutter\build\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm,android-arm64,android-x64
-Ptarget=lib\main.dart -Ptrack-widget-creation=true -Ptree-shake-icons=true assembleRelease
[+3724 ms] > Task :app:compileFlutterBuildRelease
[ +2 ms] [ +77 ms] executing: [C:\Users\BOXXUser\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] [ +69 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +3 ms] [ ] c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[ +1 ms] [ ] executing: [C:\Users\BOXXUser\flutter/] git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[ +2 ms] [ +77 ms] Exit code 0 from: git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[ +1 ms] [ ] 2.0.1
[ +1 ms] [ +38 ms] executing: [C:\Users\BOXXUser\flutter/] git rev-parse --abbrev-ref --symbolic #{u}
[ +1 ms] [ +37 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ +1 ms] [ ] origin/stable
[ +15 ms] [ ] executing: [C:\Users\BOXXUser\flutter/] git ls-remote --get-url origin
[ +5 ms] [ +33 ms] Exit code 0 from: git ls-remote --get-url origin
[ +6 ms] [ ] https://github.com/flutter/flutter.git
[ +1 ms] [ +76 ms] executing: [C:\Users\BOXXUser\flutter/] git rev-parse --abbrev-ref HEAD
[ +1 ms] [ +38 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] [ ] stable
[ +2 ms] [ +57 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.
[ +4 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +3 ms] [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +3 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.
[ +2 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +76 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ +1 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.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +3 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.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] 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.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ ] [ +82 ms] Initializing file store
[ ] [ +39 ms] Skipping target: gen_localizations
[ ] [ +8 ms] kernel_snapshot: Starting due to {}
[ +2 ms] [ +15 ms] C:\Users\BOXXUser\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\BOXXUser\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\BOXXUser\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk_product/ --target=flutter --no-print-incremental-dependencies -Ddart.vm.profile=false
-Ddart.vm.product=true --aot --tfa --packages I:\Flutter\build\.dart_tool\package_config.json --output-dill
I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\app.dill --depfile
I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\kernel_snapshot.d package:build/main.dart
[+12883 ms] [+13366 ms] kernel_snapshot: Complete
[ +302 ms] [ +349 ms] android_aot_release_android-arm: Starting due to {InvalidatedReason.inputChanged}
[ ] [ +34 ms] executing: C:\Users\BOXXUser\flutter\bin\cache\artifacts\engine\android-arm-release\windows-x64\gen_snapshot --deterministic --snapshot_kind=app-aot-elf
--elf=I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\armeabi-v7a\app.so --strip --no-sim-use-hardfp --no-use-integer-division
I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\app.dill
[ +1 ms] [ ] aot_android_asset_bundle: Starting due to {}
[ +295 ms] [ +226 ms] android_aot_release_android-arm64: Starting due to {InvalidatedReason.inputChanged}
[ +201 ms] [ +225 ms] executing: C:\Users\BOXXUser\flutter\bin\cache\artifacts\engine\android-arm64-release\windows-x64\gen_snapshot --deterministic --snapshot_kind=app-aot-elf--elf=I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\arm64-v8a\app.so --strip
I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\app.dill
[ +1 ms] [ ] android_aot_release_android-x64: Starting due to {InvalidatedReason.inputChanged}
[ +184 ms] [ +245 ms] executing: C:\Users\BOXXUser\flutter\bin\cache\artifacts\engine\android-x64-release\windows-x64\gen_snapshot --deterministic --snapshot_kind=app-aot-elf
--elf=I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\x86_64\app.so --strip
I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\app.dill
[+1104 ms] [+1085 ms] Running command: C:\Users\BOXXUser\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\BOXXUser\flutter\bin\cache\artifacts\engine\windows-x64\const_finder.dart.snapshot --kernel-file
I:\Flutter\build\.dart_tool\flutter_build\57306c59d01b0730cda6c385aa8a8a22\app.dill --class-library-uri package:flutter/src/widgets/icon_data.dart --class-name IconData
[ +508 ms] [ +520 ms] Running font-subset: C:\Users\BOXXUser\flutter\bin\cache\artifacts\engine\windows-x64\font-subset.exe
I:\Flutter\build\build\app\intermediates\flutter\release\flutter_assets\fonts/MaterialIcons-Regular.otf
C:\Users\BOXXUser\flutter\bin\cache\artifacts\material_fonts\MaterialIcons-Regular.otf, using codepoints 58727 59828 59495 58791 58792 58974
[ +95 ms] [ +23 ms] aot_android_asset_bundle: Complete
[+5500 ms] [+5591 ms] android_aot_release_android-arm: Complete
[ +106 ms] [ +50 ms] android_aot_bundle_release_android-arm: Starting due to {InvalidatedReason.inputChanged}
[ +95 ms] [ +112 ms] android_aot_bundle_release_android-arm: Complete
[ +95 ms] [ +51 ms] android_aot_release_android-x64: Complete
[ +1 ms] [ +43 ms] android_aot_bundle_release_android-x64: Starting due to {InvalidatedReason.inputChanged}
[ +104 ms] [ +48 ms] android_aot_bundle_release_android-x64: Complete
[ +91 ms] [ +141 ms] android_aot_release_android-arm64: Complete
[ +1 ms] [ +35 ms] android_aot_bundle_release_android-arm64: Starting due to {InvalidatedReason.inputChanged}
[ +108 ms] [ +50 ms] android_aot_bundle_release_android-arm64: Complete
[ ] [ +32 ms] _composite: Starting due to {}
[ ] [ ] _composite: Complete
[ ] [ +3 ms] Persisting file store
[ ] [ +15 ms] Done persisting file store
[ ] [ +17 ms] build succeeded.
[ +89 ms] [ +16 ms] "flutter assemble" took 22,546ms.
[ ] [ +4 ms] ensureAnalyticsSent: 1ms
[ ] [ +2 ms] Running shutdown hooks
[ ] [ ] Shutdown hooks complete
[ ] [ ] exiting with code 0
[ +594 ms] > Task :app:packLibsflutterBuildRelease
[ +1 ms] > Task :app:preBuild UP-TO-DATE
[ ] > Task :app:extractProguardFiles
[ ] > Task :app:preReleaseBuild
[ ] > Task :app:compileReleaseAidl NO-SOURCE
[ +1 ms] > Task :app:compileReleaseRenderscript NO-SOURCE
[ +693 ms] > Task :app:generateReleaseBuildConfig
[ +206 ms] > Task :app:checkReleaseAarMetadata
[ ] > Task :app:cleanMergeReleaseAssets UP-TO-DATE
[ +504 ms] > Task :app:mergeReleaseShaders
[ +1 ms] > Task :app:compileReleaseShaders NO-SOURCE
[ ] > Task :app:generateReleaseAssets UP-TO-DATE
[ +92 ms] > Task :app:mergeReleaseAssets
[ +206 ms] > Task :app:copyFlutterAssetsRelease
[ +1 ms] > Task :app:generateReleaseResValues
[ ] > Task :app:generateReleaseResources
[+9198 ms] > Task :app:createReleaseCompatibleScreenManifests
[ +300 ms] > Task :app:extractDeepLinksRelease
[ +391 ms] > Task :app:processReleaseMainManifest
[ +1 ms] > Task :app:processReleaseManifest
[ +106 ms] > Task :app:mergeReleaseNativeDebugMetadata NO-SOURCE
[ ] > Task :app:javaPreCompileRelease
[ ] > Task :app:mergeReleaseResources
[ +187 ms] > Task :app:compressReleaseAssets FAILED
[ +301 ms] > Task :app:processReleaseManifestForPackage
[ +1 ms] > Task :app:checkReleaseDuplicateClasses
[ +1 ms] FAILURE: Build failed with an exception.
[ +2 ms] * What went wrong:
[ ] Execution failed for task ':app:compressReleaseAssets'.
[ ] > A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
[ ] > I:\Flutter\build\build\app\intermediates\merged_assets\release\out
[ ] * 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 38s
[ +1 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[ ] 19 actionable tasks: 18 executed, 1 up-to-date
[ +523 ms] Running Gradle task 'assembleRelease'... (completed in 39.1s)
[ +5 ms] "flutter apk" took 39,641ms.
[ +3 ms] Gradle task assembleRelease failed with exit code 1
[ +1 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 buildGradleApp (package:flutter_tools/src/android/gradle.dart:411:7)
<asynchronous suspension>
#2 _AndroidBuilderImpl.buildApk (package:flutter_tools/src/android/android_builder.dart:101:7)
<asynchronous suspension>
#3 BuildApkCommand.runCommand (package:flutter_tools/src/commands/build_apk.dart:103:5)
<asynchronous suspension>
#4 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1157:12)
<asynchronous suspension>
#5 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1009:27)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
<asynchronous suspension>
#8 CommandRunner.runCommand (package:args/command_runner.dart:197:13)
<asynchronous suspension>
#9 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:278:9)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11 AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
<asynchronous suspension>
#12 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:234:5)
<asynchronous suspension>
#13 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
<asynchronous suspension>
#14 run.<anonymous closure> (package:flutter_tools/runner.dart:62:12)
<asynchronous suspension>
#15 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#16 AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
<asynchronous suspension>
#17 runInContext (package:flutter_tools/src/context_runner.dart:73:10)
<asynchronous suspension>
#18 main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>
[ +141 ms] ensureAnalyticsSent: 135ms
[ +2 ms] Running shutdown hooks
[ +1 ms] Shutdown hooks complete
[ ] exiting with code 1
When I start debug my flutter(2.0.1) app in Android studio 4.2, the app start and crashed. there has no error log output, what should I do to find why the app crashed? this is the startup log(no error message):
This will generate a JSON format file containing all messages that
need to be translated.
Launching lib/main.dart on iPhone 11 Pro in debug mode...
Running Xcode build...
Xcode build done. 16.8s
I run the run command:
/Users/dolphin/source/cruise-open/.dart_tool/flutter_build/b649952ecb0be9dfc3fd2e301c2ba3d8/kernel_snapshot.d package:Cruise/main.dart
[+1901 ms] ../../.pub-cache/hosted/pub.flutter-io.cn/video_player_platform_interface-2.2.0/lib/messages.dart:4:1: Error: A library can't opt out of null
safety by
default, when using sound null safety.
[ +1 ms] // #dart = 2.8
[ ] ^^^^^^^^^^^^^^
[ +35 ms] ../../.pub-cache/hosted/pub.flutter-io.cn/wakelock_platform_interface-0.1.0+1/lib/messages.dart:4:1: Error: A library can't opt out of null
safety by
default, when using sound null safety.
[ ] // #dart = 2.8
[ ] ^^^^^^^^^^^^^^
[ +71 ms] Error: Cannot run with sound null safety, because the following dependencies
[ ] don't support null safety:
[ ] - package:shared_preferences
[ ] - package:timeago
[ ] - package:hive
[ ] - package:hive_flutter
but I already add null safety config:
Please run the app using the command
flutter run -v
This will give you complete verbose logging.