File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

后端 未结 5 2011
梦毁少年i
梦毁少年i 2020-12-20 18:50

I have a project with 1 module and 2 applications. The module is used for code parts that both applications uses. Of course I have separate google-services.json files in the

相关标签:
5条回答
  • 2020-12-20 19:13

    Add multiDexEnabled true in your project app gradle file and check,

    defaultConfig {
        multiDexEnabled true
    }
    
    0 讨论(0)
  • 2020-12-20 19:16
    1. Go to firebase console

    2. Create a new project.

    3. Then go and click on Add Firebase to your Android app

    4. Add Package name (from AndroidManifest.xml)

    5. Then it'll generate google-services.json

    6. Copy this file and add it to (i) your project root (ii) your project>app

    7. Sync project (Tools -> Android -> Sync Project with Gradle Files)

    Hope this will help to you :)

    0 讨论(0)
  • 2020-12-20 19:17

    If you don't have access to the Firebase of the project, for example, you downloaded an example source code then you have to remove any Firebase related stuff to make the project run.

    Search keywords in the project

    • fabric
    • firebase
    • google-services
    • crashlytics
    0 讨论(0)
  • 2020-12-20 19:28

    If you want to use firebase or other google cloud platform then download google-services.json from link - https://console.firebase.google.com/u/0/project/raafta-aac07/settings/general/

    Else you don't want to use it then , just remove apply plugin: 'com.google.gms.google-services' from build.gradle from Android Studio

    0 讨论(0)
  • 2020-12-20 19:34

    That Problem is because:- The folder or file you pasted to your product downloaded from the firebase console is not named as google-services.json. so now click it then right mouse click in all the options open refractor and rename it to google-services.json. because this worked for me

    0 讨论(0)
提交回复
热议问题