ライブラリのバージョン
バージョン 15.0.0 以降、Google Play 開発者サービス ライブラリは
これにより、各ライブラリの開発チームが修正を配布できます。
独立して迅速に強化できます最新のコンバージョンや
Google Play 開発者サービスと
Firebase。
厳密なバージョン マッチング
あるバージョンのライブラリが、特定のバージョンのライブラリと互換性が
表示されます。この状況に対処するために、いくつかの Gradle プラグインが
ガイダンスに従ってください。これらのプラグインのロジックは、
ルールの failOnVersionConflict()
ルールのロジックと
ResolutionStrategy
Google Play 開発者サービスと Firebase の依存関係に関連するリソースです。
Google サービス プラグイン
Google サービス Gradle プラグイン
Google Play 開発者サービスと Firebase ライブラリの互換性のあるバージョンを確認します。
スタンドアロンのバージョン マッチャー プラグイン
Google サービス プラグインを使用していないが、厳格なルールを
依存関係のバージョン チェックを行う場合は、
[strict-version-matcher-plugin
].このプラグインの
コードをご覧ください。
次のコード スニペットは、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'
このプラグインを使用するには、以下も追加する必要があります:
buildscript のクラスパス(Google の Maven
リポジトリ:
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'
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は 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"]]