250x250
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Tags
- 템플릿
- Linux
- 연습문제
- VM
- Flutter
- virtualmachine
- 개발
- 티스토리챌린지
- 잡담
- C언어
- 휘발류
- 퇴근길
- 리눅스
- 일상
- podman
- 객체지향프로그래밍
- node.js
- 인프라
- K&R
- DART
- FreeBSD
- VMware
- 오토바이
- 주유소
- 에러
- Bloc
- 개발기
- 가상머신
- ubuntu
- 오블완
Archives
- Today
- Total
그냥저냥
Dart/Flutter | integration_test compiles against Android SDK 35 에러 해결하기 본문
개발기/트러블슈팅
Dart/Flutter | integration_test compiles against Android SDK 35 에러 해결하기
sync86 2025. 2. 27. 01:08728x90
반응형
Flutter 3.27.4 버전에서 Flutter 3.29.0 버전으로 업그레이드를 했었다. 그러고 flutter build 명령을 실행하였는데 아래와 같은 에러 메시지가 보이며 컴파일이 실패하였다. 원인은 찾아보긴 했는데 image_gallery_saver 플러그인을 빌드하면 하위 호환성에 문제가 생겼던 것 같다.
Warning: The plugin integration_test requires Android SDK version 35 or higher.
For more information about build configuration, see https://flutter.dev/to/review-gradle-config.
Your project is configured to compile against Android SDK 34, but the following plugin(s) require to be compiled against a higher Android SDK version:
- integration_test compiles against Android SDK 35
Fix this issue by compiling against the highest Android SDK version (they are backward compatible).
Add the following to /...생략.../android/app/build.gradle:
android {
compileSdk = 35
...
}
e: file:///...생략.../.pub-cache/git/image_gallery_saver-1200d0775dfa85a100d0a5021fedec38e8202679/android/src/main/kotlin/com/example/imagegallerysaver/ImageGallerySaverPlugin.kt:21:48 Unresolved reference: Registrar
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':image_gallery_saver:compileReleaseKotlin'.
> 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 3s
Running Gradle task 'bundleRelease'... 3.6s
Gradle task bundleRelease failed with exit code 1
모바일 앱을 빌드해서 배포해야 했기 때문에 Flutter 3.29.0에서 Flutter 3.27.4으로 다운그레이드를 해서 이 문제를 해결할 수 있었다. 다만, 이 문제를 해결하고 싶기 때문에 조만간에 방법을 찾아봐야겠다.
728x90
반응형