Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
657 views
in Technique[技术] by (71.8m points)

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

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 app's root folders.

The build was working very well last Friday.

Now I try to compile and got 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 FilesJavajdk1.8.0_45injava.exe'' finished with non-zero exit value 2

The only informative error message was about this google-services.json file missing in my module root folder.

I don't know what is the problem here?

The module is not an application, why would I have to add a google-services.json file and why it was worked some days ago without modification?

Edit

I have made a new Google app in Google API console and added a new google-services.json file even to my module, got the same error.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...