ライブラリのバージョン
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
バージョン 15.0.0 以降、Google Play 開発者サービス ライブラリは個別にメンテナンスされるため、各ライブラリの開発チームが修正と機能強化を独立して迅速にリリースできます。Google Play 開発者サービスと Firebase の最新リリースを追跡できます。
厳密なバージョン マッチング
1 つのライブラリのバージョンが、別のライブラリの特定のバージョンと互換性がない場合があります。このような状況に対処するために、いくつかの 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'
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-04-15 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-04-15 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"]]