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
Related
here is my flutter run --varbose results
C:\Users\LENOVOORBIT>flutter run --verbose
[ +94 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +136 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +5 ms] 18a827f3933c19f51862dde3fa472197683249d6
[ +1 ms] executing: [C:\flutter/] git tag --points-at 18a827f3933c19f51862dde3fa472197683249d6
[ +421 ms] Exit code 0 from: git tag --points-at 18a827f3933c19f51862dde3fa472197683249d6
[ +2 ms] 3.3.3
[ +71 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic #{upstream}
[ +94 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{upstream}
[ +2 ms] origin/stable
[ ] executing: [C:\flutter/] git ls-remote --get-url origin
[ +82 ms] Exit code 0 from: git ls-remote --get-url origin
[ +1 ms] https://github.com/flutter/flutter.git
[ +143 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[ +96 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +2 ms] stable
[ +162 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.
[ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +9 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.
[ ] 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.
[ +166 ms] executing: C:\Users\LENOVOORBIT\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +115 ms] List of devices attached
[ +10 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.
[ +17 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.
[ ] 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.
[ +51 ms] "flutter run" took 425ms.
[ +44 ms] Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
[ +9 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:1495:9)
#2 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:486:19)
#3 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1330:11)
<asynchronous suspension>
#4 FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1209:27)
<asynchronous suspension>
#5 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#6 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#8 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#9 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#10 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#11 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#12 main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
[ +264 ms] ensureAnalyticsSent: 256ms
[ +9 ms] Running shutdown hooks
[ +3 ms] Shutdown hooks complete
[ +4 ms] exiting with code 1
i've been trying to build the apk but evertime i do that it throws these errors.
lib/main.dart: Error: Error when reading '../../6valley%20Multi-Vendor%20E-commerce%20-%20Mobile%20App': The system cannot find the file specified.
lib/main.dart: Error: Error when reading '%20Web': The system cannot find the file specified.
lib/main.dart: Error: Error when reading '%20Seller%20and%20Admin%20Panel/User%20App/.dart_tool/flutter_build/dart_plugin_registrant.dart': The system cannot find the path specified.
i'm new to app development ,so i don't know much about it
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```
i can run my app only using
Flutter run --no-sound-null-safety
my mobile attached my my lab top samsung M21
using android studio
flutter version Flutter 2.2.1
dart version Dart 2.13.1
on windows 10
my app it is a template i bought it from themeforest i dont have any support from them
this my first time with null-safety
i have made some change because of that
and i have run
dart pub outdated --mode=null-safety
dart pub upgrade --null-safety
dart pub get
dart migrate
but when click on deubg button
it does not work at all
this is my terminal
[ +88 ms] executing: [D:\flutter\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +121 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ +1 ms] executing: [D:\flutter\flutter/] git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ +102 ms] Exit code 0 from: git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ ] 2.2.1
[ +6 ms] executing: [D:\flutter\flutter/] git rev-parse --abbrev-ref --symbolic #{u}
[ +73 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/stable
[ ] executing: [D:\flutter\flutter/] git ls-remote --get-url origin
[ +72 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +163 ms] executing: [D:\flutter\flutter/] git rev-parse --abbrev-ref HEAD
[ +97 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +101 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.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +63 ms] executing: C:\Users\hdarwish\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +71 ms] List of devices attached
R58NC4TZSJA device product:a12nnxx model:SM_A125F device:a12 transport_id:1
[ +8 ms] C:\Users\hdarwish\AppData\Local\Android\sdk\platform-tools\adb.exe -s R58NC4TZSJA shell getprop
[ +113 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.
[ +1 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.
[ +48 ms] "flutter run" took 327ms.
[ +20 ms] Target file "run" not found.
[ +2 ms]
#0 FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:1322:9)
#1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:448:19)
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1148:11)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1043:27)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#5 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
<asynchronous suspension>
#6 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
<asynchronous suspension>
#7 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#8 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
<asynchronous suspension>
#9 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11 main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
[ +253 ms] ensureAnalyticsSent: 251ms
[ +1 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
I have the latest flutter & dart. I create a basic app and then use the getting started code from the moor website: https://moor.simonbinder.eu/docs/getting-started/
When I execute the build runner it runs but exits with no error message in the moor build but no moor_test.g.dart file is created.
Here is the verbose output from build runner:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\src\flutterExamples\moor_test> flutter packages pub run build_runner build --verbose
[ +72 ms] executing: [C:\src\flutter\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
[ ] 40e3489254b2d0ffedf840bd9233e5e6d06d09dd
[ ] executing: [C:\src\flutter\flutter/] git tag --points-at 40e3489254b2d0ffedf840bd9233e5e6d06d09dd
[ +86 ms] Exit code 0 from: git tag --points-at 40e3489254b2d0ffedf840bd9233e5e6d06d09dd
[ +1 ms] executing: [C:\src\flutter\flutter/] git describe --match *.*.* --long --tags 40e3489254b2d0ffedf840bd9233e5e6d06d09dd
[ +140 ms] Exit code 0 from: git describe --match *.*.* --long --tags 40e3489254b2d0ffedf840bd9233e5e6d06d09dd
[ +2 ms] 2.1.0-12.0.pre-86-g40e3489254
[ +42 ms] executing: [C:\src\flutter\flutter/] git rev-parse --abbrev-ref --symbolic #{u}
[ +50 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/master
[ ] executing: [C:\src\flutter\flutter/] git ls-remote --get-url origin
[ +48 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +77 ms] executing: [C:\src\flutter\flutter/] git rev-parse --abbrev-ref HEAD
[ +61 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] master
[ +81 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +1 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.
[ +3 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.
[ ] 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.
[ +48 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] Artifact Instance of 'GradleWrapper' 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.
[ ] 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.
[ ] 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.
[ +27 ms] Using C:\src\flutter\flutter\.pub-cache for the pub cache.
[ +1 ms] executing: C:\src\flutter\flutter\bin\cache\dart-sdk\bin\pub.bat run build_runner build --verbose
[INFO] Entrypoint:Generating build script...
[INFO] Entrypoint:Generating build script completed, took 321ms
[INFO] Bootstrap:Creating build script snapshot......
[FINE] Bootstrap:stdout: Info: Compiling without sound null safety
[INFO] Bootstrap:Creating build script snapshot... completed, took 11.2s
[INFO] Bootstrap:There was output on stdout while compiling the build script snapshot, run with `--verbose` to see it (you will need to run a `clean` first to re-snapshot).
[FINE] Bootstrap:Core package locations file does not exist
[INFO] BuildDefinition:Initializing inputs
[INFO] BuildDefinition:Building new asset graph...
[INFO] BuildDefinition:Building new asset graph completed, took 962ms
[INFO] BuildDefinition:Checking for unexpected pre-existing outputs....
[INFO] BuildDefinition:Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Build:Running build...
[WARNING] moor_generator:moor_generator on lib/data/moor_test.dart:
Your current `analyzer` version may not fully support your current SDK version.
Please try upgrading to the latest `analyzer` by running `flutter packages upgrade`.
Analyzer language version: 2.12.0
SDK language version: 2.13.0
If you are getting this message and have the latest analyzer please file
an issue at https://github.com/dart-lang/sdk/issues/new with the title
"No published analyzer available for language version 2.13.0".
Please search the issue tracker first and thumbs up and/or subscribe to
existing issues if present to avoid duplicates.
[INFO] build_resolvers:Generating SDK summary...
[INFO] Heartbeat:3.1s elapsed, 0/3 actions completed.
[INFO] build_resolvers:Generating SDK summary completed, took 3.0s
[FINE] moor_generator:moor_generator on lib/data/moor_test.dart:Running MoorGenerator - 1 of 2
[FINE] moor_generator:moor_generator on lib/data/moor_test.dart:Running DaoGenerator - 2 of 2
[INFO] Heartbeat:5.1s elapsed, 0/3 actions completed.
[INFO] Heartbeat:10.4s elapsed, 1/3 actions completed.
[FINE] moor_generator:moor_generator on lib/main.dart:Running MoorGenerator - 1 of 2
[FINE] moor_generator:moor_generator on test/widget_test.dart:Running MoorGenerator - 1 of 2
[FINE] moor_generator:moor_generator on lib/main.dart:Running DaoGenerator - 2 of 2
[FINE] moor_generator:moor_generator on test/widget_test.dart:Running DaoGenerator - 2 of 2
[INFO] Build:Running build completed, took 11.3s
[INFO] Build:Caching finalized dependency graph...
[INFO] Build:Caching finalized dependency graph completed, took 30ms
[INFO] Build:Succeeded after 11.3s with 0 outputs (6 actions)
[+36878 ms] "flutter pub" took 36,987ms.
[ +117 ms] ensureAnalyticsSent: 112ms
[ +2 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ +1 ms] exiting with code 0
Here is my pubspec.yaml file:
name: moor_test
description: A new Flutter project.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
moor: # use the latest version
sqlite3_flutter_libs: # Also use the latest version.
path_provider:
path:
cupertino_icons: ^1.0.2
dev_dependencies:
flutter_test:
sdk: flutter
moor_generator: # use the latest version
build_runner:
flutter:
uses-material-design: true
And my moor class:
import 'package:moor/moor.dart';
part 'moor_test.g.dart';
class Todos extends Table {
IntColumn get id => integer().autoIncrement()();
TextColumn get title => text().withLength(min: 6, max: 32)();
TextColumn get content => text().named('body')();
IntColumn get category => integer().nullable()();
}
#DataClassName("Category")
class Categories extends Table {
IntColumn get id => integer().autoIncrement()();
TextColumn get description => text()();
}
#UseMoor(tables: [Todos, Categories])
class MyDatabase {
}
Does anyone know what I am doing wrong or can prompt me where to look to debug this?
I have cloned the https://github.com/flutter/flutter_web repository and I'm trying to run the hello_world program in the examples directory.
I have done everything instructed in the GitHub page.
Additionally, I installed the dart SDK using apt because i was getting another error, "webdev dart: not found", this was fixed.
Now I'm getting the following error when running "webdev serve",
"The pubspec.yaml file has changed since the pubspec.lock file was generated, please run "pub get" again."
I ran "flutter pub get" and "flutter pub upgrade", this did not fix it.
I expected this to start a web server on port 8080.The output of
flutter pub get -v
is
[ +18 ms] executing: [/home/meth/Documents/development/flutter/] git log -n 1 --pretty=format:%H
[ +21 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
[ ] executing: [/home/meth/Documents/development/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +7 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.5.4-hotfix.2-0-g7a4c33425
[ +8 ms] executing: [/home/meth/Documents/development/flutter/] git rev-parse --abbrev-ref --symbolic #{u}
[ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/stable
[ ] executing: [/home/meth/Documents/development/flutter/] git ls-remote --get-url origin
[ +7 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +36 ms] executing: [/home/meth/Documents/development/flutter/] git rev-parse --abbrev-ref HEAD
[ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +21 ms] 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 'FuchsiaCacheArtifacts' is not required, skipping update.
[ +16 ms] Running "flutter packages get" in hello_world...
[ +3 ms] Using /home/meth/Documents/development/flutter/.pub-cache for the pub cache.
[ +1 ms] executing: [/home/meth/Documents/work/flutter_web/examples/hello_world/] /home/meth/Documents/development/flutter/bin/cache/dart-sdk/bin/pub --verbosity=warning --verbose get
--no-precompile
[ +440 ms] ! flutter_web 0.0.0 from path ../../packages/flutter_web
[ +1 ms] ! flutter_web_ui 0.0.0 from path ../../packages/flutter_web_ui
[ +49 ms] Running "flutter packages get" in hello_world... (completed in 0.5s)
[ +166 ms] "flutter get" took 717ms.
[ ] "flutter get" took 717ms.
and the output of
webdev serve -v
is
webdev could not run for this project.
The pubspec.yaml file has changed since the pubspec.lock file was generated, please run "pub get" again.
My Current directory
drwxrwxr-x 3 meth meth 4096 Jun 9 07:38 android
drwxrwxr-x 4 meth meth 4096 Jun 9 07:38 ios
drwxrwxr-x 2 meth meth 4096 Jun 9 07:41 lib
-rw-rw-r-- 1 meth meth 10592 Jun 9 12:00 pubspec.lock
-rw-rw-r-- 1 meth meth 400 Jun 9 07:55 pubspec.yaml
drwxrwxr-x 2 meth meth 4096 Jun 9 07:40 web
There is a solution to this. Found it here,
https://github.com/flutter/flutter/issues/32313
use
flutter packages pub global run webdev build
instead of webdev build
and
flutter packages pub global run webdev serve
instead of webdev serve