Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[firebase_core, firebase_analytics, firebase_crashlytics, firebase_messaging, firebase_remote_config] Android: build.gradle uses Groovy space-assignment syntax (deprecated in Gradle 9, removed in Gradle 10)

クローズ 初心者向け
#18,832 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
dart, flutter

調査の方向性

5つの Firebase パッケージに記載されている android/build.gradle ファイルから始め、Gradle 9 で ./gradlew help --warning-mode all を実行して警告を再現します。報告された Groovy のプロパティ宣言を代入構文に更新し、警告が消え、ビルドが引き続き Gradle 8.x と互換性を保つことを確認します。

索引モデルが issue の本文から書いたものです。

説明

Needs Attention platform: android type: infrastructure umbrella

Describe the bug

On Gradle 9, every Android build of an app that depends on firebase_core / firebase_analytics / firebase_crashlytics / firebase_messaging / firebase_remote_config prints this deprecation for the plugin's android/build.gradle:

Properties should be assigned using the 'propName = value' syntax. Setting a property via the Gradle-generated 'propName value' or 'propName(value)' syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.

Docs: https://docs.gradle.org/9.3.1/userguide/upgrading_version_8.html#groovy_space_assignment_syntax

Once Gradle 10 removes the syntax, apps that use this plugin will fail to build on Android.

Where

firebase_core 5.0.0, android/build.gradle:

1: group 'io.flutter.plugins.firebase.core'
2: version '1.0-SNAPSHOT'
40:       namespace 'io.flutter.plugins.firebase.core'
61:         buildConfig true

firebase_analytics 13.0.0, android/build.gradle:

1: group 'io.flutter.plugins.firebase.analytics'
2: version '1.0-SNAPSHOT'
47:         namespace 'io.flutter.plugins.firebase.analytics'
68:         buildConfig true

firebase_crashlytics 6.0.0, android/build.gradle:

1: group 'io.flutter.plugins.firebase.crashlytics'
2: version '1.0-SNAPSHOT'
47:     namespace 'io.flutter.plugins.firebase.crashlytics'

firebase_messaging 17.0.0, android/build.gradle:

1: group 'io.flutter.plugins.firebasemessaging'
2: version '1.0-SNAPSHOT'
39:     namespace 'io.flutter.plugins.firebase.messaging'

firebase_remote_config 7.0.0, android/build.gradle:

1: group 'io.flutter.plugins.firebase.firebaseremoteconfig'
2: version '1.0-SNAPSHOT'
47:         namespace 'io.flutter.plugins.firebase.firebaseremoteconfig'

Expected behavior

Use assignment syntax, which already works on Gradle 8.x, so the change is backwards compatible:

group = '...'
version = '1.0'
namespace = '...'
buildConfig = true

To reproduce

Build any Flutter app that depends on the plugin with Gradle 9.x, using ./gradlew help --warning-mode all. The warnings point at the lines above.

Environment

Flutter 3.47.6, AGP 9.1.0, Gradle 9.3.1, Kotlin 2.3.21, JDK 17.

主要言語
Dart
スター
9.3k
フォーク
4.1k
平均マージ
1日 12時間
マージ済み PR(30日)
78

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

firebase/flutterfire のほかの issue

firebase/flutterfire の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。