카테고리 없음
[플러터] Flutter 'elapsedInSeconds >= 0.0': is not true. 오류 해결
투자퀸
2022. 6. 23. 11:25
플러터 프로젝트를 진행중에 아래와 같은 오류가 났습니다.
아래보다 더 길었지만 대략 위에있는 오류코드가 중요하니 생략합니다.
======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 822 pos 12: 'elapsedInSeconds >= 0.0': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md
When the exception was thrown, this was the stack:
#2 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:822:12)
#3 Ticker._tick (package:flutter/src/scheduler/ticker.dart:238:12)
#4 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1146:15)
#5 SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1059:11)
터미널에서 플러터의 만능 치료제
flutter pub get
flutter doctor -v
도 해봤지만 여전히 해결되지 않았는데
새로운 치료제를 발견해서 넣어봤습니다.
flutter run --verbose
PS C:\Users\user\StudioProjects\animalsound> flutter run --vebose
Could not find an option named "vebose".
Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
PS C:\Users\user\StudioProjects\animalsound> flutter run --verbose
[ +102 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +154 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +4 ms] fb57da5f945d02ef4f98dfd9409a72b7cce74268
[ +2 ms] executing: [C:\flutter/] git tag --points-at fb57da5f945d02ef4f98dfd9409a72b7cce74268
[ +102 ms] Exit code 0 from: git tag --points-at fb57da5f945d02ef4f98dfd9409a72b7cce74268
[ +1 ms] 3.0.1
[ +11 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +82 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] origin/stable
[ +1 ms] executing: [C:\flutter/] git ls-remote --get-url origin
[ +85 ms] Exit code 0 from: git ls-remote --get-url origin
[ +2 ms] https://github.com/flutter/flutter.git
[ +181 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[ +83 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +2 ms] stable
[ +122 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +81 ms] executing: C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[ +104 ms] List of devices attached
R5CT209G9GT device product:b0qksx model:SM_S908N device:b0q transport_id:7
[ +12 ms] C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe -s R5CT209G9GT shell getprop
[ +184 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +16 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ +2 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.
[ +175 ms] Skipping pub get: version match.
[ +31 ms] Found plugin audiofileplayer at C:\flutter\.pub-cache\hosted\pub.dartlang.org\audiofileplayer-2.1.0\
[ +8 ms] Found plugin audioplayers at C:\flutter\.pub-cache\hosted\pub.dartlang.org\audioplayers-0.20.1\
[ +21 ms] Found plugin google_mobile_ads at C:\flutter\.pub-cache\hosted\pub.dartlang.org\google_mobile_ads-0.13.6\
[ +16 ms] Found plugin path_provider at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.11\
[ +5 ms] Found plugin path_provider_android at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.15\
[ +3 ms] Found plugin path_provider_ios at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.10\
위처럼 쭉쭉 진행됐고
다시 빌드해보니
Launching lib\main.dart on SM S908N in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Debug service listening on ws://127.0.0.1:13606/kyJ3rdw0UUs=/ws
Syncing files to device SM S908N...
ㅇㅋ 성공
뭐가 문젠지 아는게 중요하지만
일단은 안되면 되게 하는게 중요할때도 있겠죠..