커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
아래화면같이 엄청나게 많은 오류가떠요 ㅠㅠ vscode를 삭제하고 다시 다운받아도 그러네요 ㅜㅜㅠㅜㅜ
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반 v0
2주차
북마크
김*철
댓글
23
추천
0
조회수
35
조회수
35
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


아래화면같이 엄청나게 많은 오류가떠요 ㅠㅠ vscode를 삭제하고 다시 다운받아도 그러네요 ㅜㅜㅠㅜㅜ

모범답안을 복사해서 실행해도 안됩니다 ㅠㅠ



스파르타 즉문즉답



작성한 코드 및 에러 메세지

^^^^^^^^^^^^^^^^^^^

: Error: 'AssetBundleImageKey' isn't a type.

image_resolution.dart:310


result = SynchronousFuture<AssetBundleImageKey>(key);

^^^^^^^^^^^^^^^^^^^

: Error: 'AssetBundleImageKey' isn't a type.

image_resolution.dart:327

completer = Completer<AssetBundleImageKey>();

^^^^^^^^^^^^^^^^^^^

: Error: The method 'AssetBundleImageKey' isn't defined for the class 'AssetImage'.

image_resolution.dart:295


- 'AssetImage' is from 'package:flutter/src/painting/image_resolution.dart' ('../../../../snap/flutter/common/flutter/packages/flutter/lib/src/painting/image_resolution.dart').

image_resolution.dart:1

Try correcting the name to the name of an existing method, or defining a method named 'AssetBundleImageKey'.

final AssetBundleImageKey key = AssetBundleImageKey(

^^^^^^^^^^^^^^^^^^^

: Error: 'ImageConfiguration' isn't a type.

image_resolution.dart:347

String? _chooseVariant(String main, ImageConfiguration config, List<String>? candidates) {

^^^^^^^^^^^^^^^^^^


: Error: 'ImageConfiguration' isn't a type.

shape_decoration.dart:396

void _paintImage(Canvas canvas, ImageConfiguration configuration) {

^^^^^^^^^^^^^^^^^^

: Error: 'ImageConfiguration' isn't a type.

shape_decoration.dart:411

void paint(Canvas canvas, Offset offset, ImageConfiguration configuration) {

^^^^^^^^^^^^^^^^^^


Target kernel_snapshot failed: Exception

2


FAILURE: Build failed with an exception.


* Where:

Script '/home/tempo/snap/flutter/common/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1157


* What went wrong:

Execution failed for task ':app:compileFlutterBuildDebug'.

> Process 'command '/home/tempo/snap/flutter/common/flutter/bin/flutter'' finished with non-zero exit value 1


* 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 10s

Exception: Gradle task assembleDebug failed with exit code 1




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴