【发布时间】:2021-06-20 07:18:42
【问题描述】:
- 出了什么问题: 任务“:app:processDebugGoogleServices”执行失败。
找不到与包名称“com.example.myapp”匹配的客户端
- 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
这是来自 Google Service.json 的客户端部分
“客户端”:[https://stackoverflow.com/questions/66766493/execution-failed-for-task-appprocessdebuggoogleservices-no-matching-clien {
"client_info": {
"mobilesdk_app_id": "1:110944006455:android:f790b09ad0563a63046ab2",
"android_client_info": {
"package_name": "com.example.myapp"
}
}
这是我的 build.gradle
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.riderapp "
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
您可以看到两者的应用程序 ID 相同。 然而我收到了这个错误:
- 出了什么问题:
任务
:app:processDebugGoogleServices执行失败
找不到与包名称“com.example.myapp”匹配的客户端
【问题讨论】:
-
你在 build.gradle 中实现了 google 服务吗?类路径 'com.google.gms:google-services:4.3.4'
标签: android ios firebase flutter dart