라이브러리 버전
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
버전 15.0.0부터 Google Play 서비스 라이브러리는 개별적으로 유지관리되므로 각 라이브러리의 개발팀이 수정사항과 개선사항을 독립적으로 더 빠르게 제공할 수 있습니다. Google Play 서비스 및 Firebase의 최신 출시 버전을 추적할 수 있습니다.
엄격한 버전 일치
한 라이브러리의 버전이 다른 라이브러리의 특정 버전과 호환되지 않을 수 있습니다. 이러한 상황을 처리하는 데 도움이 되도록 여러 Gradle 플러그인이 이러한 버전 불일치에 관한 안내를 제공합니다. 이러한 플러그인의 로직은 Google Play 서비스 및 Firebase 종속 항목과 연결된 ResolutionStrategy
의 failOnVersionConflict()
규칙의 로직과 유사합니다.
Google 서비스 플러그인
Google 서비스 Gradle 플러그인은 호환되는 Google Play 서비스 및 Firebase 라이브러리 버전을 확인합니다.
독립형 버전 일치 플러그인
Google 서비스 플러그인을 사용하지 않지만 종속 항목의 엄격한 버전 검사를 원하는 경우 [strict-version-matcher-plugin
]를 적용할 수 있습니다. GitHub에서 이 플러그인의 코드를 볼 수 있습니다.
다음 코드 스니펫은 Gradle 플러그인을 추가하는 방법을 보여줍니다.
Kotlin DSL
build.gradle.kts
plugin {
id("com.google.android.gms.strict-version-matcher-plugin")
}
Groovy DSL
build.gradle
apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'
이 플러그인을 사용하려면 Google의 Maven 저장소에서 가져온 buildscript 클래스 경로에 다음도 추가해야 합니다.
Kotlin DSL
build.gradle.kts
classpath("com.google.android.gms:strict-version-matcher-plugin:1.2.4")
Groovy DSL
build.gradle
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.2.4'
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-11(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-03-11(UTC)"],[[["Google Play services libraries are now individually maintained, allowing for faster and more frequent updates to individual components."],["Strict version matching is crucial as library versions might be incompatible, and the Google Services Gradle plugin and the standalone strict-version-matcher-plugin help manage these dependencies."],["The `strict-version-matcher-plugin` offers a way to ensure version compatibility for Google Play services and Firebase dependencies, even without using the Google Services plugin."],["To utilize the standalone plugin, you need to add it to your buildscript classpath and apply it in your Gradle file using the provided code snippets."]]],["Google Play services libraries are individually maintained, enabling faster updates. To manage potential version incompatibilities between libraries, Gradle plugins provide guidance. The Google Services Gradle plugin checks for compatible versions of Google Play services and Firebase libraries. Alternatively, the `strict-version-matcher-plugin` offers dependency version checking without the Google Services plugin. To use it you must add the plugin and the `strict-version-matcher-plugin` classpath to your build script.\n"]]