<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Firebase not initialized Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/firebase-not-initialized/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/firebase-not-initialized/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 22 May 2021 06:03:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>[Solved] Flutter : [core/not-initialized] Firebase has not been correctly initialized. Have you added the &#8220;google-services.json&#8221; file to the project?</title>
		<link>https://www.scmgalaxy.com/tutorials/flutter-core-not-initialized-firebase-has-not-been-correctly-initialized-have-you-added-the-google-services-json-file-to-the-project/</link>
					<comments>https://www.scmgalaxy.com/tutorials/flutter-core-not-initialized-firebase-has-not-been-correctly-initialized-have-you-added-the-google-services-json-file-to-the-project/#respond</comments>
		
		<dc:creator><![CDATA[Sushant K]]></dc:creator>
		<pubDate>Sat, 22 May 2021 05:59:18 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[core/not-initialized]]></category>
		<category><![CDATA[dependency]]></category>
		<category><![CDATA[Firebase]]></category>
		<category><![CDATA[firebase console]]></category>
		<category><![CDATA[Firebase not correctly initialized]]></category>
		<category><![CDATA[Firebase not initialized]]></category>
		<category><![CDATA[flutter]]></category>
		<category><![CDATA[google-services.json]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=6334</guid>

					<description><![CDATA[<p>Problem I&#8217;ve connected my flutter app to firebase by adding SHA1 key ( How to Get SHA-1 key in Android [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/flutter-core-not-initialized-firebase-has-not-been-correctly-initialized-have-you-added-the-google-services-json-file-to-the-project/">[Solved] Flutter : [core/not-initialized] Firebase has not been correctly initialized. Have you added the &#8220;google-services.json&#8221; file to the project?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="has-text-align-center wp-block-heading"><span class="has-inline-color has-vivid-red-color">Problem</span></h2>



<p class="wp-block-paragraph">I&#8217;ve connected my flutter app to firebase by adding SHA1 key ( <a rel="noreferrer noopener" href="https://www.devopsschool.com/blog/how-to-get-sha-1-key-in-android-studio-for-firebase/" data-type="URL" data-id="https://www.devopsschool.com/blog/how-to-get-sha-1-key-in-android-studio-for-firebase/" target="_blank">How to Get SHA-1 key in Android Studio for Firebase.</a> ) and package name in firebase console, and also downloaded and provided <code><span class="has-inline-color has-vivid-red-color">google-service.json</span></code>  in my flutter app at <code><span class="has-inline-color has-vivid-red-color">android/app</span></code>. But when i run app its Showing an error that i&#8217;ve not provided <code><span class="has-inline-color has-vivid-red-color"> google-service.json</span></code> file in my app. The Error Says &#8211; </p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">E/flutter (15568): &#91;ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: &#91;core/not-initialized] Firebase has not been correctly initialized. Have you added the "google-services.json" file to the project? 
E/flutter (15568): </span>
</code></pre>



<h2 class="has-text-align-center wp-block-heading"><span class="has-inline-color has-vivid-red-color">Solution</span></h2>



<p class="wp-block-paragraph">After hours of struggle, I am able to figure out the solution.</p>



<p class="wp-block-paragraph">1. First, add the &#8216;<code>google-services.json</code>&#8216; plugin as a dependency inside of the android/build.gradle file:</p>



<pre class="wp-block-code"><code> buildscript {
      dependencies {
        // ... other dependencies
        <strong><span class="has-inline-color has-vivid-red-color">classpath 'com.google.gms:google-services:4.3.3'</span></strong>
      }
    }</code></pre>



<p class="wp-block-paragraph">2. Lastly, execute the plugin by adding the following underneath the line apply plugin:<br>add after &#8216;com.android.application&#8217;, within the /android/app/build.gradle file:</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color"><strong>apply plugin: 'com.google.gms.google-services'</strong></span></code></pre>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">That&#8217;s All.</p>



<p class="wp-block-paragraph">Thanks for Reading.</p>



<p class="wp-block-paragraph">Keep Coding.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="http://www.devopsschool.com/blog/wp-content/uploads/2020/11/Keep_coding.gif" alt="" class="wp-image-19371"/></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/flutter-core-not-initialized-firebase-has-not-been-correctly-initialized-have-you-added-the-google-services-json-file-to-the-project/">[Solved] Flutter : [core/not-initialized] Firebase has not been correctly initialized. Have you added the &#8220;google-services.json&#8221; file to the project?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/flutter-core-not-initialized-firebase-has-not-been-correctly-initialized-have-you-added-the-google-services-json-file-to-the-project/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
