skip to Main Content

I can see the following as logs

FAILURE: Build failed with an exception.

* Where:
Build file 'C:UsersadithDesktopfltrfirebase_projectandroidappbuild.gradle' line: 6

* What went wrong:
Plugin [id: 'com.google.gms.google-services'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (None of the included builds contain this plugin)
- Plugin Repositories (plugin dependency must include a version number for this source)

* 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
Error: Gradle task assembleDebug failed with exit code 1]

Can someone help me with this?

2

Answers


  1. Check if you have added these lines:

    • Add google-services.json file

    enter image description here

    • Add services plugin in build.gradle and settings.gradle

    android/app/build.gradle
    enter image description here

    android/settings.gradle
    enter image description here

    Login or Signup to reply.
  2. Please add Google Services file in Android and iOS.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search