No matching client found for package name 'com.example.myapp '
This is a client portion from Google Service.json
"client": [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"
}
}
And here is my 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
}
You can see that the application ID for both is same. Yet I receiver this error:
:app:processDebugGoogleServices
No matching client found for package name 'com.example.myapp'
The application Id for both is not the same. In google services json it says com.example.myapp
But in your buildGradle it's com.example.riderapp
Go to firebase, add your app again with the name used in buildGradle com.example.riderapp
, add your SHA-1 debug key to firebase in this step also, then download your json again and remove the old one. And report back what happens.
Note: make sure to keep the new googlejson named exactly google-services.json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With