커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
1-7 프로젝트 열기 및 실행 오류
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반
1주차
북마크
이*혁
댓글
6
추천
0
조회수
30
조회수
30
답변 완료

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

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



안녕하세요

1-7 강의 듣는 중인데 앱 실행하려고 하니 아래 오류가 뜹니다

어떻게 해결해야 할까요?





작성한 코드 및 에러 메세지

오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.

Tip 1) </> 아이콘을 눌러 Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...

Warning: Flutter support for your project's Android Gradle Plugin version (7.3.0) will soon be dropped. Please upgrade your Android Gradle Plugin version to a version of at least 7.3.1 soon.

Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check.


Potential fix: Your project's AGP version is typically defined in the plugins block of the `settings.gradle` file (C:\Users\lover\Desktop\mobile_app_study\scc-memory-matching-game-main\android/settings.gradle), by a plugin with the id of com.android.application.

If you don't see a plugins block, your project was likely created with an older template version. In this case it is most likely defined in the top-level build.gradle file (C:\Users\lover\Desktop\mobile_app_study\scc-memory-matching-game-main\android/build.gradle) by the following line in the dependencies block of the buildscript: "classpath 'com.android.tools.build:gradle:<version>'".


Warning: Flutter support for your project's Kotlin version (1.7.10) will soon be dropped. Please upgrade your Kotlin version to a version of at least 1.8.10 soon.

Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check.


Potential fix: Your project's KGP version is typically defined in the plugins block of the `settings.gradle` file (C:\Users\lover\Desktop\mobile_app_study\scc-memory-matching-game-main\android/settings.gradle), by a plugin with the id of org.jetbrains.kotlin.android.

If you don't see a plugins block, your project was likely created with an older template version, in which case it is most likely defined in the top-level build.gradle file (C:\Users\lover\Desktop\mobile_app_study\scc-memory-matching-game-main\android/build.gradle) by the ext.kotlin_version property.


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':app:processDebugResources'.

> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction

  > Android resource linking failed

   aapt2.exe E 02-26 10:39:09 11552 1092 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.

   aapt2.exe E 02-26 10:39:09 11552 1092 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\lover\AppData\Local\Android\sdk\platforms\android-35\android.jar'.

   error: failed to load include path C:\Users\lover\AppData\Local\Android\sdk\platforms\android-35\android.jar.


* 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


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

│ [!] Using compileSdk 35 requires Android Gradle Plugin (AGP) 8.1.0 or higher.          │

│ Please upgrade to a newer AGP version. The version of AGP that your project uses is likely   │

│ defined in:                                           │

│ C:\Users\lover\Desktop\mobile_app_study\scc-memory-matching-game-main\android\settings.gradle,  │

│ in the 'plugins' closure (by the number following "com.android.application").          │

│ Alternatively, if your project was created with an older version of the templates, it is likely │

│ in the buildscript.dependencies closure of the top-level build.gradle:              │

│ C:\Users\lover\Desktop\mobile_app_study\scc-memory-matching-game-main\android\build.gradle,   │

│ as the number following "com.android.tools.build:gradle:".                    │

│                                                 │

│ Finally, if you have a strong reason to avoid upgrading AGP, you can temporarily lower the   │

│ compileSdk version in the following file:                            │

│ C:\Users\lover\Desktop\mobile_app_study\scc-memory-matching-game-main\android\app\build.gradle  │

└──────────────────────────────────────────────────────────────────────────────────────────────────┘

Error: Gradle task assembleDebug failed with exit code 1


Exited (1).

코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




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