Coding⏱️ 2 min read📅 2026-05-31

How to Fix: Error "File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it"

The Google Services Plugin requires the google-services.json file to be present in the module root folder.

Quick Answer: Check if you have downloaded the google-services.json file from the Google Play services download page and placed it in the correct location.

To resolve the error 'File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it', follow these steps:

🛑 Root Causes of the Error

  • The Google Services Plugin requires a google-services.json file to be present in the module root folder. This file is used to configure and authenticate with Google services.

🔧 Proven Troubleshooting Steps

Method 1: Create a google-services.json file manually

  1. Step 1: Open the terminal and navigate to your project's root directory.

Method 2: Use Gradle's default google-services.json file

  1. Step 1: Add the following configuration to your app.gradle file:
configurations { all { distributionStrategy = org.jetbrains.android.internal.gradle.api.distribution.DistributionStrategy.CAPABILITY } }

💡 Conclusion

By following these steps, you should be able to resolve the error and successfully integrate Google services into your Android project.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions