라이브러리 버전
버전 15.0.0부터 Google Play 서비스 라이브러리가 유지됩니다.
이를 통해 각 라이브러리의 개발팀에서 수정사항을 제공할 수 있습니다.
독립적으로 더 빠르게 개선할 수 있습니다 최신
Google Play 서비스 버전
Firebase
엄격한 버전 매칭
한 라이브러리 한 버전이 다른 라이브러리의 특정 버전과 호환되지 않을 수도 있습니다.
찾을 수 있습니다. 이 상황을 처리하는 데 도움이 되도록 여러 Gradle 플러그인이
가이드를 참고하세요. 이러한 플러그인의 로직은
failOnVersionConflict()
규칙의 로직과 유사하게
ResolutionStrategy
Google Play 서비스 및 Firebase 종속 항목과 연결된
Google Play API 서비스 제공업체입니다
Google 서비스 플러그인
Google 서비스 Gradle 플러그인
Google Play 서비스 및 Firebase 라이브러리의 호환되는 버전 확인
독립형 버전 일치자 플러그인
Google 서비스 플러그인을 사용하지 않지만 여전히 엄격한 정책을 원하는 경우
종속 항목의 버전을 확인하고 싶다면
[strict-version-matcher-plugin
]. 이 플러그인의
GitHub의 코드를 참고하세요.
다음 코드 스니펫은 Gradle 플러그인을 추가하는 방법을 보여줍니다.
build.gradle.kts
plugin {
id("com.google.android.gms.strict-version-matcher-plugin")
}
build.gradle
apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'
이 플러그인을 사용하려면 다음을 추가해야 합니다.
Google Maven에서 가져온 buildscript 클래스 경로
저장소:
build.gradle.kts
classpath("com.google.android.gms:strict-version-matcher-plugin:1.2.4")
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-02-28(UTC)
[null,null,["최종 업데이트: 2025-02-28(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"]]