简体   繁体   English

项目名称和 ApplicationID 匹配,但我仍然收到此错误:No matching client found for package name 'capacitor.android.plugins'

[英]Project name and ApplicationID match but i still get this error: No matching client found for package name 'capacitor.android.plugins'

my build.gradle(:app) has the following applicationid enter image description here我的 build.gradle(:app) 有以下 applicationid在此处输入图像描述

defaultConfig {
    applicationId "io.ionic.starter"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

and my google-service.json has the following package_nam:我的 google-service.json 具有以下 package_nam:

"client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1xxxx",
        "android_client_info": {
          "package_name": "io.ionic.starter"
        }
    },

the manifest file has this package name as well:清单文件也有这个 package 名称:

<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="io.ionic.starter">

but for some reason I keep getting this error:但由于某种原因,我不断收到此错误:

Execution failed for task ':capacitor-cordova-android-plugins:processDebugGoogleServices'.
> No matching client found for package name 'capacitor.android.plugins'

The plugin obviously uses the name of the package, where it can find the google-services.json .该插件显然使用了 package 的名称,它可以在其中找到google-services.json Simply move google-services.json from capacitor.android.plugins into app/src/main .只需将google-services.jsoncapacitor.android.plugins .android.plugins 移动到app/src/main中。

  • add google-services.json file in android/app and android/capacitor-cordova-android-plugin在 android/app 和 android/capacitor-cordova-android-plugin 中添加 google-services.json 文件

  • edit package name in android/capacitor-cordova-android-plugin/menifests/AndroidManifest.xml and android/app/build.gradle在 android/capacitor-cordova-android-plugin/menifests/AndroidManifest.xml 和 android/app/build.gradle 中编辑 package 名称

package must same as in services.json file. package 必须与 services.json 文件中的相同。

Note - In gradle u need to change applicationId.注意 - 在 gradle 中,您需要更改 applicationId。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 执行失败任务“:capacitor-cordova-android-plugins:processDebugGoogleServices”。 找不到匹配的客户端 package 'capacitor.android.plugins' - Execution fail task ':capacitor-cordova-android-plugins:processDebugGoogleServices'. No matching client found for package 'capacitor.android.plugins' 更改gradle中的“ applicationId”时出错(未找到包名称“ my_new_app_id”的匹配客户端) - Getting error when changing “applicationId” in gradle (No matching client found for package name “my_new_app_id”) Android Studio - 找不到与 package 名称匹配的客户端“” - Android Studio - No matching client found for package name '' 风味错误-找不到与包名称匹配的客户端 - Flavors error - No matching client found for package name 项目中两个具有相同applicationId和包名称的Android模块 - Two Android modules with the same applicationId and package name in project 没有为新 Firebase 项目的 package 名称找到匹配的客户端 - No matching client found for package name for new Firebase project 如何使用 JNI android 获取应用程序包名称或 applicationId - How to get app package name or applicationId using JNI android 如何将我的 android applicationId 与包名称分开 - How do I separate my android applicationId from package name 找不到包名称processAppDebugGoogleServices的匹配客户端 - No matching client found for package name processAppDebugGoogleServices 找不到与包名称 &#39;*****.test&#39; 匹配的客户端 - No matching client found for package name '*****.test'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM