I have a project with 1 module and 2 applications. The module is used for parts of the code that are used by both applications. Of course, I have separate google-services.json files in the root folders of the application.
Last Friday, the assembly worked very well.
Now I am trying to compile and get this error:
File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it. :DoToDoSenderApp:compileDebugSources :DoToDoSenderApp:transformClassesWithDexForDebug UNEXPECTED TOP-LEVEL EXCEPTION: Error:Execution failed for task ':DoToDoSenderApp:transformClassesWithDexForDebug'. > com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 2
The only informative error message was about this google-services.json file, which is not in the root folder of my module.
I do not know what's the problem?
The module is not an application, why should I add the google-services.json file and why did it work a few days ago without changes?
Edit
I made a new Google application in the Google API console and added a new google-services.json file even to my module, got the same error.
json android google-play-services google-cloud-messaging
Adam Varhegyi Oct 26 '15 at 9:27 2015-10-26 09:27
source share