<?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>Build fails with Exception Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/build-fails-with-exception/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/build-fails-with-exception/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Thu, 27 May 2021 06:45:31 +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] FlutterFirebaseMessagingPlugin.java &#8211; Build fails with Exception “error: cannot find symbol”</title>
		<link>https://www.scmgalaxy.com/tutorials/flutterfirebasemessagingplugin-java-build-fails-with-exception-error-cannot-find-symbol/</link>
					<comments>https://www.scmgalaxy.com/tutorials/flutterfirebasemessagingplugin-java-build-fails-with-exception-error-cannot-find-symbol/#respond</comments>
		
		<dc:creator><![CDATA[Sushant K]]></dc:creator>
		<pubDate>Tue, 25 May 2021 07:29:20 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[Build fails with Exception]]></category>
		<category><![CDATA[error: cannot find symbol]]></category>
		<category><![CDATA[firebase_auth]]></category>
		<category><![CDATA[flutter]]></category>
		<category><![CDATA[FlutterFirebaseMessagingPlugin.java]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=6377</guid>

					<description><![CDATA[<p>Problem After upgrading firebase_auth to latest version (i.e., ^1.2.0), it says update intl to ^0.17.0. When i updated intl,&#160;I&#8217;m getting [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/flutterfirebasemessagingplugin-java-build-fails-with-exception-error-cannot-find-symbol/">[SOLVED] FlutterFirebaseMessagingPlugin.java &#8211; Build fails with Exception “error: cannot find symbol”</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">After upgrading <code>firebase_auth</code> to latest version <code>(i.e., ^1.2.0)</code>, it says update <code>intl</code> to <code>^0.17.0</code>. When i updated <code>intl</code>,&nbsp;I&#8217;m getting errors when I try to run <code>flutter pub get</code>.</p>



<pre class="wp-block-code"><code>C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-9.1.4\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java:20: error: cannot find symbol
    import com.google.firebase.iid.FirebaseInstanceId;
                                  ^
      symbol:   class FirebaseInstanceId
      location: package com.google.firebase.iid
    C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-9.1.4\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java:21: error: cannot find symbol
    import com.google.firebase.iid.Metadata;
                                  ^
      symbol:   class Metadata
      location: package com.google.firebase.iid
    C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-9.1.4\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java:152: error: cannot find symbol
                      : Metadata.getDefaultSenderId(FirebaseApp.getInstance());
                        ^
      symbol:   variable Metadata
      location: class FlutterFirebaseMessagingPlugin
    C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-9.1.4\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java:153: error: cannot find symbol
              FirebaseInstanceId.getInstance().deleteToken(senderId, "*");
              ^
      symbol:   variable FirebaseInstanceId
      location: class FlutterFirebaseMessagingPlugin
    C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-9.1.4\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java:165: error: cannot find symbol
                      : Metadata.getDefaultSenderId(FirebaseApp.getInstance());
                        ^
      symbol:   variable Metadata
      location: class FlutterFirebaseMessagingPlugin
    C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-9.1.4\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java:166: error: cannot find symbol
              String token = FirebaseInstanceId.getInstance().getToken(senderId, "*");
                             ^
      symbol:   variable FirebaseInstanceId
      location: class FlutterFirebaseMessagingPlugin</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">Update <code>firebase_messaging</code> to latest one (Currently  i.e., <code>firebase_messaging:&nbsp;^10.0.0</code>), and call <code>flutter pub get</code>. </p>



<p class="wp-block-paragraph">That&#8217;s it. </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 fetchpriority="high" decoding="async" width="300" height="300" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/Keep_coding.gif" alt="" class="wp-image-6350"/></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/flutterfirebasemessagingplugin-java-build-fails-with-exception-error-cannot-find-symbol/">[SOLVED] FlutterFirebaseMessagingPlugin.java &#8211; Build fails with Exception “error: cannot find symbol”</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/flutterfirebasemessagingplugin-java-build-fails-with-exception-error-cannot-find-symbol/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
