LoginSignup
5
1

背景

アプリ申請時にGoogle Play Consoleから下記の警告メールがきた

com.google.android.play:core: 1.8.0
Google Play Core (com.google.android.play:core) は、SDK バージョン 1.8.0 に関して次の注記を追加しました:

Play Core Maven 依存関係を Android 14 互換バージョンに更新してください。現在の Play Core ライブラリは targetSdkVersion 34 (Android 14) と互換性がありません。このバージョンでは、ユーザーのセキュリティを強化するために、ブロードキャスト レシーバーに下位互換性のない変更が導入されています。8 月 31 日より、Google Play ではすべての新しいアプリ リリースで Android 14 をターゲットにすることが義務付けられます。アプリのクラッシュを回避するには、Play Core ライブラリの依存関係を最新バージョンに更新してください: https://developer.android.com/guide/playcore#playcore-migration

2024 年 9 月 17 日 00:00 (UTC) 以降、この SDK バージョンを含むアプリの新しいバージョンを製品版またはオープンテストにリリースできなくなります。

アプリのレビュー依頼を実装するために
com.google.android.play:core: 1.8.0
を使用していたがtargetSdkVersion 34とは互換性がないとの警告であった。

修正方法

下記の公式URLの内容通りです。

Play Core Java and Kotlin Library は、機能別に複数の Android ライブラリに分割されました。これにより、Play Core ライブラリがアプリに追加するサイズが減り、個々の機能のリリース サイクルを短縮できます。

機能ごとに分割されたとのことで、それぞれ必要な機能を追加する。
今回はレビュー機能だけを使っていたので以下の通り。

dependencies {
    // 互換性なし警告が出るので削除
//    implementation("com.google.android.play:core-ktx:1.8.1")

    // This dependency is downloaded from the Google’s Maven repository.
    // Make sure you also include that repository in your project's build.gradle file.
    implementation("com.google.android.play:review:2.0.1")

    // For Kotlin users, also import the Kotlin extensions library for Play In-App Review:
    implementation("com.google.android.play:review-ktx:2.0.1")
    ...
}

その他についてもcom.google.android.play:core-ktxは削除して
使っているライブラリごとに追加すれば良いだけかと思います。

以上です。

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1