라이브러리 버전
컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
버전 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
plugins { 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 classpath에 추가해야 합니다.
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-08-17(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-08-17(UTC)"],[[["\u003cp\u003eGoogle Play services libraries are now individually maintained, allowing for faster and more frequent updates to individual components.\u003c/p\u003e\n"],["\u003cp\u003eStrict 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estrict-version-matcher-plugin\u003c/code\u003e offers a way to ensure version compatibility for Google Play services and Firebase dependencies, even without using the Google Services plugin.\u003c/p\u003e\n"],["\u003cp\u003eTo 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.\u003c/p\u003e\n"]]],["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"],null,["As of version 15.0.0, the Google Play services libraries are maintained\nindividually, allowing the development teams for each library to ship fixes and\nenhancements independently and more quickly. You can track the latest releases\nfor [Google Play services](/android/guides/releases) and [Firebase](https://firebase.google.com/support/release-notes/android).\n\nStrict version matching\n\nA version of one library might be incompatible with a specific version of\nanother library. To help handle this situation, several Gradle plugins provide\nguidance for these version mismatches. The logic in these plugins is similar to\nthe logic in a `failOnVersionConflict()` rule for a [`ResolutionStrategy`](https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html)\nthat's associated with Google Play services and Firebase dependencies.\n\nGoogle services plugin\n\nThe [Google Services Gradle plugin](/android/guides/google-services-plugin) checks for compatible versions of Google\nPlay services and Firebase libraries.\n\nStandalone version matcher plugin\n\nIf you're not using the Google Services plugin, but you still want strict\nversion checking of your dependencies, you can apply the\n`strict-version-matcher-plugin`. You can view this [plugin's\ncode](https://github.com/google/play-services-plugins/tree/master/strict-version-matcher-plugin) on GitHub.\n\nThe following code snippet shows how to add the Gradle plugin: \n\nKotlin DSL\n\nbuild.gradle.kts \n\n```kotlin\nplugins {\n id(\"com.google.android.gms.strict-version-matcher-plugin\")\n}\n```\n\nGroovy DSL\n\nbuild.gradle \n\n```groovy\napply plugin: 'com.google.android.gms.strict-version-matcher-plugin'\n```\n\nTo use this plugin, you also need to add the following to your buildscript\nclasspath, obtained from [Google's Maven repository](https://maven.google.com/web/index.html#com.google.android.gms:strict-version-matcher-plugin): \n\nKotlin DSL\n\nbuild.gradle.kts \n\n```kotlin\nclasspath(\"com.google.android.gms:strict-version-matcher-plugin:1.2.4\")\n```\n\nGroovy DSL\n\nbuild.gradle \n\n```groovy\nclasspath 'com.google.android.gms:strict-version-matcher-plugin:1.2.4'\n```"]]