커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
3-17의 image picker 설치 후 실행 오류
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반
3주차
북마크
최*완
댓글
2
추천
0
조회수
22
조회수
22
답변 완료

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

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


안녕하세요?

계속 이어지는 오류 때문에 3장에서 거의 진행을 못하고 있습니다. ㅠㅠ

어제 문제에서도 나름 시간을 많이 쓰다가 질문도 해 보기도 하다가 좌측 프로파일 구역의 이미지 링크가 잘못된 것을 발견하고 다른 유효한 이미지를 링크하여 간신히 해결되었는데,

오늘은 3-16까지는 잘 진행되기에 일단 3-16까지의 프로젝트를 백업해 두고 3-17을 시작하면서 image picker를 설치한 후에 문제가 발생했습니다.

이번에도 혹시 강의를 제대로 따라가지 못했나 하고 되돌아 가서 완전히 새로 시작하기를 몇 차례 반복하다가 위와 같이 image picker를 설치한 후에 문제가 발생하는 것을 겨우 찾았습니다.

이미지피커를 설치한 후 새로고침만 했을 때는 문제가 없었는데 네모 버튼을 클릭해 앱을 중지한 후 디버그 모드로 재실행하면 다음과 같은 디버그콘솔의 메시지가 나오면서 실행이 안 됩니다.

사실, 처음엔 이러한 문제를 모르고 디버그 실행모드에서 새로고침만으로 계속 진행했었는데 iOS에서 info.plist 파일의 마지막에 두 줄 추가하고 나서 이를 적용하려면 앱을 네모 버튼(vscode 창)을 이용해 완전 중지한 후 실행해야 한다는 강의 내용에 따라 그렇게 한 후 재실행이 안 되었기에 처음엔 info.plis 파일만 되돌려보는 등 시간을 많이 썼었다가, 제대로 되지 않기에 다시 처음부터 강의를 따라오면서 시시때때로 백업해가면서 확인해 보니 이미지 피커를 설치한 후에 앱 중지 및 재실행 시 문제가 생긴다는 것을 찾게 되었습니다.

이 오류메시지를 모두 긁어 코파일럿에 물어 보니 개발환경의 버전 문제를 얘기하면서 최신 버전으로 업데이트할 것을 권고했지만, 이 강의 처음 부분에서 최신버전이 아닌 특정 버전으로 해야 한다 하셨고, 저의 경우 도중에 최신버전으로 갔다가 잘 안 되어 완전히 다시 뒤엎은 경험이 있어서 일단은 여기에 먼저 질문 드려 봅니다.

고맙습니다.


Launching lib\main.dart on SM G950N in debug mode...

e: C:/Users/JChoi/.gradle/caches/transforms-3/1883941d2759c467b016d46a917ad5be/transformed/jetified-kotlin-stdlib-1.9.24.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

e: C:/Users/JChoi/.gradle/caches/transforms-3/1883941d2759c467b016d46a917ad5be/transformed/jetified-kotlin-stdlib-1.9.24.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

e: C:/Users/JChoi/.gradle/caches/transforms-3/1883941d2759c467b016d46a917ad5be/transformed/jetified-kotlin-stdlib-1.9.24.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

e: C:/Users/JChoi/.gradle/caches/transforms-3/c1bf03c31e3167f7272950769245b854/transformed/jetified-annotation-jvm-1.9.1.jar!/META-INF/annotation.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':app:compileDebugKotlin'.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

  > Compilation error. See log for more details


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


┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐

│ [!] Your project requires a newer version of the Kotlin Gradle plugin.            │

│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then  │

│ update the                                          │

│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of │

│ E:\ws\flutter\thread_app_sample\android\settings.gradle.                   │

│                                               │

│ Alternatively (if your project was created before Flutter 3.19), update           │

│ E:\ws\flutter\thread_app_sample\android\build.gradle                     │










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