Kotlin 버전에 필요한 AGP, D8, R8 버전
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Android Gradle 플러그인(AGP)과 D8 및 R8 컴파일러는 Kotlin 버전 1.3 이상의 클래스 파일과 호환됩니다.
D8 및 R8 컴파일러는 AGP 4.1에 포함된 2.1.86 버전부터 Kotlin 버전 1.3의 클래스 파일을 지원합니다.
Kotlin 버전 1.4 이상의 클래스 파일에는 각 Kotlin 버전에 필요한 최소 AGP, D8, R8 버전이 있습니다.
다음 표에는 각 Kotlin 버전에 필요한 최소 AGP, D8, R8 버전이 나와 있습니다. AGP는 D8 및 R8과 번들로 제공되므로 필요한 D8 및 R8 버전은 AGP 외부에서 D8 및 R8을 사용하거나 번들 버전을 재정의하는 경우에만 관련이 있습니다.
Kotlin 버전 |
필요한 AGP 버전 |
필요한 D8 및 R8 버전 |
1.3 |
4.1 |
2.1.86 |
1.4 |
7.0 |
3.0.76 |
1.5 |
7.0 |
3.0.77 |
1.6 |
7.1 |
3.1.51 |
1.7 |
7.2 |
3.2.47 |
1.8 |
7.4 |
4.0.48 |
1.9 |
8.0 |
8.0.27 |
2.0 |
8.5 |
8.5.10 |
2.1 |
8.6 |
8.6.17 |
2.2 |
8.10 |
8.10.21 |
표에 나열된 AGP 버전은 지정된 D8 및 R8 컴파일러 버전을 자동으로 사용합니다.
자바 8+ API 디슈가링을 사용하는 경우 AGP 7.0 버전(과 D8 및 R8 버전 3.0.76)이 필요합니다.
R8은 버전 1.4 이상의 Kotlin 메타데이터만 내보낼 수 있습니다. R8을 사용하여 Kotlin 버전 1.3의 메타데이터로 Kotlin 라이브러리를 축소하는 경우 메타데이터는 Kotlin 1.4 형식으로 변환됩니다. Kotlin 버전 1.4 이상의 경우 R8에서 이 버전이 유지됩니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# AGP, D8, and R8 versions required for Kotlin versions\n\nThe Android Gradle plugin (AGP) and the D8 and R8 compilers are compatible with\nclass files from Kotlin version 1.3 and higher.\n\nThe D8 and R8 compilers support class files from Kotlin version 1.3 starting\nfrom version 2.1.86 (included in AGP 4.1).\nFor class files from Kotlin version 1.4 and higher there is a minimum required\nAGP, D8, and R8 version for each Kotlin version.\n\nThe following table shows the minimum required versions of AGP, D8 and R8 for\neach Kotlin version. Note that AGP comes bundled with D8 and R8, so the\nrequired D8 and R8 version is only relevant when using D8 and R8 outside of AGP\nor if overriding the bundled version.\n\n| Kotlin version | Required AGP version | Required D8 and R8 version |\n|----------------|----------------------|----------------------------|\n| 1.3 | 4.1 | 2.1.86 |\n| 1.4 | 7.0 | 3.0.76 |\n| 1.5 | 7.0 | 3.0.77 |\n| 1.6 | 7.1 | 3.1.51 |\n| 1.7 | 7.2 | 3.2.47 |\n| 1.8 | 7.4 | 4.0.48 |\n| 1.9 | 8.0 | 8.0.27 |\n| 2.0 | 8.5 | 8.5.10 |\n| 2.1 | 8.6 | 8.6.17 |\n| 2.2 | 8.10 | 8.10.21 |\n\n\u003cbr /\u003e\n\nThe AGP versions listed in the table automatically use the\nspecified D8 and R8 compiler versions.\n\nWhen using [Java 8+ API desugaring](/studio/build/library-desugaring)\nAGP version 7.0 (and D8 and R8 version 3.0.76) is required.\nR8 can only emit Kotlin metadata of version 1.4 and newer. When using R8 to\nshrink a Kotlin library with metadata from Kotlin version 1.3 the metadata\nis converted to the Kotlin 1.4 format. For Kotlin version 1.4 and newer R8\npreserves the version."]]