- Home /
Where to put google-services.json when using apply plugin: 'com.google.gms.google-services' in build.gradle
I try to add my aar libs to unity project. And I read this document https://docs.unity3d.com/Manual/android-gradle-overview.html Everything work ok. But when I build it, I miss a problem Execution failed for task ':processDebugGoogleServices'.
Searched Location: /Users/Shared/Unity/Standard Assets Example Project/Temp/gradleOut/src/debug/google-services.json /Users/Shared/Unity/Standard Assets Example Project/Temp/gradleOut/google-services.json Because I using apply plugin: 'com.google.gms.google-services' in mainTemplate.grade. So where can I put google-services.json to build project. I try to put it in: Assets, Assets/Plugins, Assets/Plugins/Android, Assets/Plugins/Android/assets all of them still not workFile google-services.json is missing. The Google Services Plugin cannot function without it.
Answer by mattchen · Oct 24, 2017 at 01:10 AM
if you use firebase unity plugin, you fill find a python code that can convert google-services.json to google-services.xml. when you has this xml, you don't need apply plugin: 'com.google.gms.google-services'
This worked perfectly for me, thank you so much! Was banging my head against this for a long time.
@david-cornelius in accordance with the guidelines of the FAQ, please mark answers that help as "accepted":
Where can I learn how to post good questions? Please see the video here. Also, for some instruction on why asking for code is bad, please see "What have you tried?" by $$anonymous$$att Gemmell.
Be honest. Above all, be honest.
When you see good questions or helpful answers, vote them up! This will help getting the best answers and the most interesting questions be listed first. Any registered user is able to vote up, regardless of reputation.
If you ask a question and someone writes a helpful reply, make sure to mark that reply as the answer! (Click the check-mark icon to make it green.) This is both your privilege and duty as the person who asked the question. You gain 5 $$anonymous$$arma points when accepting an answer that helped solve your issue.
Hello $$anonymous$$attchen,
I am getting the same error. Could you please tell where should I place google-services.json or how to use google-services.xml while registering firebase on Android native end.
Any help will be very thankful. Thanks in advance
Your answer
Follow this Question
Related Questions
Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define 0 Answers
android app dont start on device after inistalation 2 Answers
My Android Game is not working (unity 19.2) 0 Answers
i try to build to andriod but i keep getting this error what can i do about it? 0 Answers