如何解决找不到匹配的客户端包名称'



在项目D:\Profile\AGAINAGAIN 中执行任务:[clean,:app:assemblyDebug]

任务:清理更新日期任务:应用程序:清理任务:应用程序:预构建-截止日期任务:app:preDebugBuild更新日期任务:app:generateDebugBuildConfig任务:app:compileDebugAidl NO-SOURCE任务:app:compileDebugRenderscript NO-SOURCE任务:app:javaPreCompileDebug任务:app:mainApkListPersistenceDebug任务:app:generateDebugResValues任务:app:generateDebugResources

任务:app:processDebugGoogleServices失败解析json文件:D:\Profile\AGAINAGAIN\app\google-services.json

失败:生成失败,出现异常。

  • 出了什么问题:任务":app:processDebugGoogleServices"的执行失败。

    未找到包名"com.Dinke.againagain"的匹配客户端

是否提供了任何解决方案?如果你知道这些文件,请告诉我。既然我认为每个案例都是独一无二的,我认为最好尽可能多地提供信息?

在google-services.json中,将包名更改为您的包名;

"client": [
{
"client_info": {
"mobilesdk_app_id": "",
"android_client_info": {
"package_name": "com.Dinke.againagain" //here
}
},

您可以在此处阅读更多信息:https://developers.google.com/android/guides/google-services-plugin#processing_the_json_file

最新更新