<?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>Duplicate class &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/duplicate-class/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Fri, 21 Jan 2022 07:20:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>[SOLVED] Flutter : Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-20.0.jar</title>
		<link>https://www.bestdevops.com/flutter-duplicate-class-com-google-common-util-concurrent-listenablefuture-found-in-modules-guava-20-0-jar/</link>
		
		<dc:creator><![CDATA[Sushant Kumar]]></dc:creator>
		<pubDate>Fri, 21 Jan 2022 06:33:10 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[Android Gradle]]></category>
		<category><![CDATA[app:checkDebugDuplicateClasses]]></category>
		<category><![CDATA[Build failed with an exception.]]></category>
		<category><![CDATA[Duplicate class]]></category>
		<category><![CDATA[Execution failed for task]]></category>
		<category><![CDATA[flutter]]></category>
		<category><![CDATA[Gradle task assembleDebug failed]]></category>
		<category><![CDATA[guava-20.0.jar]]></category>
		<category><![CDATA[modules guava-20.0.jar]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22885</guid>

					<description><![CDATA[Problem Solution Step 1. Added implementation &#8216;com.google.guava:guava:27.0.1-android&#8217; at the end of my android/app/build.gradle file and the error went away. Source:- Stackoverflow Step [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h1 class="has-text-align-center wp-block-heading"><span class="has-inline-color has-primary-color">Problem</span></h1>


<pre class="wp-block-code"><span><code class="hljs language-xml">Launching lib\main.dart on sdk gphone x86 in debug mode...
Parameter format not correct -
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.2.1\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-1.3.0\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-5.0.0+1\android\src\main\java\com\dexterous\flutterlocalnotifications\FlutterLocalNotificationsPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\google_maps_flutter-2.0.3\android\src\main\java\io\flutter\plugins\googlemaps\Convert.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\google_maps_flutter-2.0.3\android\src\main\java\io\flutter\plugins\googlemaps\TileProviderController.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\google_sign_in-4.5.9\android\src\main\java\io\flutter\plugins\googlesignin\GoogleSignInPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\image_cropper-1.4.1\android\src\main\java\vn\hunghd\flutter\plugins\imagecropper\ImageCropperPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\launch_review-3.0.1\android\src\main\java\com\iyaffle\launchreview\LaunchReviewPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
&gt; 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-20.0.jar (com.google.guava:guava:20.0) and listenablefuture-1.0.jar (com.google.guava:listenablefuture:1.0)

  Go to the documentation to learn how to <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"d.android.com/r/tools/classpath-sync-errors"</span>&gt;</span>Fix dependency resolution errors<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 48s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)</code></span></pre>


<h1 class="has-text-align-center wp-block-heading"><span class="has-inline-color has-primary-color">Solution</span></h1>



<p class="wp-block-paragraph"><strong><span class="has-inline-color has-primary-color">Step 1.</span></strong> Added <strong><span class="has-inline-color has-primary-color">implementation &#8216;com.google.guava:guava:27.0.1-android&#8217;</span></strong> at the end of my <strong><span class="has-inline-color has-primary-color">android/app/build.gradle</span></strong> file and the error went away.</p>



<p class="wp-block-paragraph">Source:- <a href="https://stackoverflow.com/a/56639924/12256830" target="_blank" rel="noreferrer noopener">Stackoverflow</a></p>



<p class="wp-block-paragraph"> <strong><span class="has-inline-color has-primary-color">Step 2.</span></strong>  Run <strong>flutter clean</strong>, <strong>flutter pub get</strong> and run your project.</p>



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



<p class="wp-block-paragraph">I hope it fixed your error.</p>



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



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="300" height="300" src="http://www.bestdevops.com/wp-content/uploads/2021/09/Keep_coding.gif" alt="" class="wp-image-21547"/></figure>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
