{"id":87,"date":"2025-07-21T08:41:43","date_gmt":"2025-07-21T08:41:43","guid":{"rendered":"https:\/\/documentation.iqonic.design\/prokit-flutter\/?p=87"},"modified":"2025-07-28T09:21:15","modified_gmt":"2025-07-28T09:21:15","slug":"no-matching-client-found-for-package-name","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/no-matching-client-found-for-package-name\/","title":{"rendered":"No matching client found for package name"},"content":{"rendered":"<div class=\"nolwrap\">\n<p><strong>\ud83d\udd52 Estimated Reading:&nbsp;<\/strong>1 minutes<strong><br>\ud83d\udcc2&nbsp;Location:&nbsp;<\/strong>Common Errors \u2192 No Matching Client Found for Package Name<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u2757&nbsp;<strong>Error Overview<\/strong><\/h2>\n\n\n\n<p>If you encounter the error message:<br><strong>\u201cNo matching client found for package name\u201d<\/strong><br>it means that the&nbsp;<strong>package&nbsp;<\/strong>name specified<strong>&nbsp;<\/strong>in your<strong>&nbsp;google-services.json<\/strong>&nbsp;file does not match the&nbsp;<strong>applicationId<\/strong>&nbsp;in your app\u2019s<strong>&nbsp;build.gradle<\/strong>&nbsp;file.<\/p>\n\n\n\n<p>This mismatch prevents Firebase from correctly identifying your application, resulting in a configuration error.<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f<strong>&nbsp;Reason<\/strong><\/h2>\n\n\n\n<p>Firebase requires the package name (<strong>package_name<\/strong>) in the&nbsp;<strong>google-services.json<\/strong>&nbsp;file to&nbsp;<strong>exactly match<\/strong>&nbsp;the&nbsp;<strong>applicationId<\/strong>&nbsp;defined in your Android project\u2019s&nbsp;<strong>build.gradle<\/strong>&nbsp;file.<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705<strong>&nbsp;How to Fix It (Step-by-Step)<\/strong><\/h2>\n\n\n\n<p>Follow these steps to resolve the issue:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open<\/strong>&nbsp;the&nbsp;<strong>google-services.json<\/strong>&nbsp;file, which is typically located in the&nbsp;<strong>android\/app<\/strong>&nbsp;directory of your Flutter project.<\/li>\n\n\n\n<li>Look for the&nbsp;<strong>package_name<\/strong>&nbsp;field in the&nbsp;<strong>google-services.json<\/strong>&nbsp;file. This should match the package name you intend to use for your application.<\/li>\n\n\n\n<li>Next,&nbsp;<strong>open<\/strong>&nbsp;the&nbsp;<strong>build.gradle<\/strong>&nbsp;file in the&nbsp;<strong>android\/app<\/strong>&nbsp;directory of your project.<\/li>\n\n\n\n<li><strong>Find<\/strong>&nbsp;the&nbsp;<strong>build.gradle<\/strong>&nbsp;file, locate the&nbsp;<strong>defaultConfig<\/strong>&nbsp;section. Inside this section:<br>defaultConfig {applicationId \u201ccom.example.yourapp\u201d}<br>\u2192 Ensure the&nbsp;<strong>applicationId<\/strong>&nbsp;exactly matches the&nbsp;<strong>package_name<\/strong>&nbsp;from&nbsp;<strong>google-services.json<\/strong>.<\/li>\n\n\n\n<li>If the values&nbsp;<strong>do not match<\/strong>, do one of the following:\n<ul class=\"wp-block-list\">\n<li><strong>Update<\/strong>&nbsp;the&nbsp;<strong>applicationId<\/strong>&nbsp;in&nbsp;<strong>build.gradle<\/strong><br><strong>OR<\/strong><\/li>\n\n\n\n<li><strong>Update&nbsp;<\/strong>the<strong>&nbsp;google-services.json<\/strong>&nbsp;from Firebase Console with the correct&nbsp;<strong>package_name<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Save<\/strong>&nbsp;the changes made to both files.<\/li>\n\n\n\n<li><strong>Clean and rebuild<\/strong>&nbsp;the project by running these commands in your terminal:\n<ul class=\"wp-block-list\">\n<li>flutter clean<\/li>\n\n\n\n<li>flutter run<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd0d&nbsp;<strong>Reference<\/strong><\/h3>\n\n\n\n<p>For more information, visit the official\u00a0<a href=\"https:\/\/documentation.iqonic.design\/prokit-flutter\/firebase-configuration\/\">Firebase Configuration Guide<\/a><\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<p>\u2705 Following the above steps will resolve the mismatch error and let Firebase recognize your app correctly.<\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\ud83d\udd52 Estimated Reading:&nbsp;1 minutes\ud83d\udcc2&nbsp;Location:&nbsp;Common Errors \u2192 No Matching Client Found for Package Name \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"parent":84,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-prokit-flutter"],"featured_image_src":null,"author_info":{"display_name":"flutteradminiq","author_link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/author\/flutteradminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":3,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/87\/revisions\/340"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/84"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}