我将我的项目更新为最新的Play服务classpath 'com.google.gms:google-services:1.5.0-beta2'.我也在app.gradle文件中使用最新版本的playservices:
compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
Run Code Online (Sandbox Code Playgroud)
但是当我编译时,Gradle会抛出异常,如下所示
Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.
Run Code Online (Sandbox Code Playgroud)