LoginSignup
1
0
はじめての記事投稿

【Flutter】Firebaseを使った際のAndroidビルドエラーの治し方。

Last updated at Posted at 2023-07-14

概要

※この記事はFlutterを始めて一週間の人が書いている備考録です。

少し前にFirebaseを使ったログイン機能があるToDoアプリを作ろうとした時に下記エラーが発生しました。

Launching lib/main.dart on M2101K6R in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mapDebugSourceSetPaths'.
> Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths'
   > Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'.
      > Querying the mapped value of provider(java.util.Set) before task ':app:processDebugGoogleServices' has completed is not supported

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Exception: Gradle task assembleDebug failed with exit code 1

無事解決しましたので治し方を備考録として貼っておきます。

治し方

project/android/app/build.gradleを開き、コード内からapply plugin: 'com.google.gms.google-services'を探してcmd+/またはctrl+/でコメントアウトしてください。

1
0
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
1
0