<?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>エラー</title>
	<atom:link href="https://techgrowup.net/tag/%e3%82%a8%e3%83%a9%e3%83%bc/feed/" rel="self" type="application/rss+xml" />
	<link>https://techgrowup.net</link>
	<description>エンジニアを強くする</description>
	<lastBuildDate>Wed, 25 Sep 2024 06:57:31 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://techgrowup.net/wp-content/uploads/2021/05/hp-icon-150x150.png</url>
	<title>エラー</title>
	<link>https://techgrowup.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Flutterで「Manifest merger failed: uses-sdk21 cannot be smaller than version 23」エラーの解決方法</title>
		<link>https://techgrowup.net/flutter-minsdkversion-firebase-error/</link>
					<comments>https://techgrowup.net/flutter-minsdkversion-firebase-error/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Wed, 25 Sep 2024 06:57:30 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[エラー集]]></category>
		<category><![CDATA[Dart]]></category>
		<category><![CDATA[アプリ開発]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1868</guid>

					<description><![CDATA[はじめに 　FlutterでFirebaseを使用しているときに、次のようなエラーが発生することがあります： 　このエラーメッセージは、Firebase Authenticationを含む依存ライブラリが**minSdk [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading">はじめに</h1>



<p class="wp-block-paragraph">　FlutterでFirebaseを使用しているときに、次のようなエラーが発生することがあります：</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="Execution failed for task ':app:processDebugMainManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [:firebase_auth] ..." style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Execution</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">failed</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">for</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">task</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;:app:processDebugMainManifest&#39;.</span></span>
<span class="line"><span style="color: #DCDCAA">Manifest</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">merger</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">failed</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">:</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">uses-sdk:minSdkVersion</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">21</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">cannot</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">be</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">smaller</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">than</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">version</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">23</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">declared</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">in</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">library</span><span style="color: #D4D4D4"> [:firebase_auth] ...</span></span></code></pre></div>



<p class="wp-block-paragraph">　このエラーメッセージは、<strong>Firebase Authentication</strong>を含む依存ライブラリが**<code>minSdkVersion 23</code><strong>を要求しているのに対し、プロジェクトが</strong><code>minSdkVersion 21</code>**に設定されているために発生しています。これにより、ビルドが失敗し、アプリを実行できない状態となります。<br>　本記事では、このエラーの原因を詳しく解説し、解決策をステップごとに説明します。</p>



<h2 class="wp-block-heading">エラーメッセージの解読</h2>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [:firebase_auth] ..." style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Manifest</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">merger</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">failed</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">:</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">uses-sdk:minSdkVersion</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">21</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">cannot</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">be</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">smaller</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">than</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">version</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">23</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">declared</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">in</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">library</span><span style="color: #D4D4D4"> [:firebase_auth] ...</span></span></code></pre></div>



<p class="wp-block-paragraph">　このエラーメッセージが示しているのは次の通りです：</p>



<ul class="wp-block-list">
<li><strong><code>firebase_auth</code>ライブラリが<code>minSdkVersion 23</code>を要求</strong>している。
<ul class="wp-block-list">
<li>Firebase Authenticationライブラリが使用するAPIが、Android SDK 23以降でのみ利用できるためです。</li>
</ul>
</li>



<li><strong>アプリが<code>minSdkVersion 21</code></strong> に設定されているため、Firebase Authenticationと互換性がなく、ビルドが失敗している。</li>
</ul>



<p class="wp-block-paragraph">このエラーを解決するためには、プロジェクトの<code>minSdkVersion</code>を<strong>23</strong>に引き上げるか、他の方法でこの互換性の問題を解消する必要があります。</p>



<h2 class="wp-block-heading">解決方法</h2>



<p class="wp-block-paragraph">　このエラーにはいくつかの解決策がありますが、最も推奨される方法は、<strong><code>minSdkVersion</code>を23に引き上げる</strong>ことです。その他、必要に応じてライブラリの互換性を調整する方法もあります。</p>



<h3 class="wp-block-heading">方法1: minSdkVersionを23に引き上げる</h3>



<p class="wp-block-paragraph">　最も簡単で推奨される方法は、プロジェクトの<code>minSdkVersion</code>を<strong>23</strong>に引き上げることです。これにより、Firebase Authenticationを含むすべてのライブラリが正常に動作します。</p>



<h4 class="wp-block-heading">手順</h4>



<ol class="wp-block-list">
<li><strong><code>android/app/build.gradle</code></strong> ファイルを開きます。</li>



<li>**<code>minSdkVersion</code>**の値を確認し、<strong>23</strong>に変更します。</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="android {
    defaultConfig {
        // 他の設定
        minSdkVersion 23  // ここを21から23に変更
        targetSdkVersion 33  // ここは通常、最新のAndroidバージョンに合わせます
        // 他の設定
    }
}" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">android {</span></span>
<span class="line"><span style="color: #D4D4D4">    defaultConfig {</span></span>
<span class="line"><span style="color: #D4D4D4">        </span><span style="color: #6A9955">// 他の設定</span></span>
<span class="line"><span style="color: #D4D4D4">        minSdkVersion </span><span style="color: #B5CEA8">23</span><span style="color: #D4D4D4">  </span><span style="color: #6A9955">// ここを21から23に変更</span></span>
<span class="line"><span style="color: #D4D4D4">        targetSdkVersion </span><span style="color: #B5CEA8">33</span><span style="color: #D4D4D4">  </span><span style="color: #6A9955">// ここは通常、最新のAndroidバージョンに合わせます</span></span>
<span class="line"><span style="color: #D4D4D4">        </span><span style="color: #6A9955">// 他の設定</span></span>
<span class="line"><span style="color: #D4D4D4">    }</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<ol start="3" class="wp-block-list">
<li>ファイルを保存し、アプリを再ビルドします。</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="flutter clean
flutter pub get
flutter run" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">flutter</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">clean</span></span>
<span class="line"><span style="color: #DCDCAA">flutter</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">pub</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">get</span></span>
<span class="line"><span style="color: #DCDCAA">flutter</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">run</span></span></code></pre></div>



<p class="wp-block-paragraph">　これで、ビルドが正常に完了するはずです。</p>



<h3 class="wp-block-heading">方法2: Firebaseライブラリの古いバージョンを使用する</h3>



<p class="wp-block-paragraph">　もし、<strong>Android SDK 21</strong>以下の端末をサポートしなければならない場合、<code>firebase_auth</code>などのFirebaseライブラリの<strong>古いバージョン</strong>を使用することができます。ただし、機能が制限される可能性があり、最新のセキュリティ修正も適用されない可能性があります。</p>



<h4 class="wp-block-heading">手順</h4>



<ol class="wp-block-list">
<li><code>pubspec.yaml</code>ファイルを開き、<code>firebase_auth</code>のバージョンを互換性のある古いバージョンに変更します。</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="dependencies:
  firebase_auth: 0.18.0  # 互換性のある古いバージョンを指定" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #569CD6">dependencies</span><span style="color: #D4D4D4">:</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #569CD6">firebase_auth</span><span style="color: #D4D4D4">: </span><span style="color: #B5CEA8">0.18.0</span><span style="color: #D4D4D4">  </span><span style="color: #6A9955"># 互換性のある古いバージョンを指定</span></span></code></pre></div>



<ol start="2" class="wp-block-list">
<li><code>flutter pub get</code>コマンドで依存関係をインストールします。</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="flutter pub get" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">flutter</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">pub</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">get</span></span></code></pre></div>



<ol start="3" class="wp-block-list">
<li>アプリを再ビルドして、エラーが解消されるか確認します。</li>
</ol>



<h3 class="wp-block-heading">方法3: <code>tools:overrideLibrary</code>で強制ビルド（非推奨）</h3>



<p class="wp-block-paragraph">　エラーメッセージで示唆されているように、<code>tools:overrideLibrary</code>を使用して互換性を無視し、強制的にビルドする方法もあります。しかし、この方法はランタイムエラーを引き起こす可能性が高いため、推奨されません。</p>



<h4 class="wp-block-heading">手順</h4>



<ol class="wp-block-list">
<li><code>android/app/src/main/AndroidManifest.xml</code>ファイルを開きます。</li>



<li>次のように、<code>tools:overrideLibrary</code>を追加します。</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="&lt;uses-sdk
    android:minSdkVersion=&quot;21&quot;
    tools:overrideLibrary=&quot;io.flutter.plugins.firebase.auth&quot; /&gt;" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #808080">&lt;</span><span style="color: #569CD6">uses-sdk</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #9CDCFE">android:minSdkVersion</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&quot;21&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #9CDCFE">tools:overrideLibrary</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&quot;io.flutter.plugins.firebase.auth&quot;</span><span style="color: #D4D4D4"> </span><span style="color: #808080">/&gt;</span></span></code></pre></div>



<ol start="3" class="wp-block-list">
<li>アプリを再ビルドします。</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="flutter clean
flutter pub get
flutter run" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">flutter</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">clean</span></span>
<span class="line"><span style="color: #DCDCAA">flutter</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">pub</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">get</span></span>
<span class="line"><span style="color: #DCDCAA">flutter</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">run</span></span></code></pre></div>



<p class="wp-block-paragraph">　強制的にビルドできる場合もありますが、ランタイムエラーや互換性問題が発生する可能性があるため、<strong>本番環境には適さない</strong>方法です。</p>



<h2 class="wp-block-heading">まとめ</h2>



<p class="wp-block-paragraph">　FlutterでFirebase Authenticationを使用する際の<code>minSdkVersion</code>エラーは、プロジェクト設定を少し変更するだけで簡単に解決できます。最も推奨される解決方法は、アプリの<code>minSdkVersion</code>を<strong>23</strong>に引き上げることです。これにより、<code>firebase_auth</code>をはじめとするすべての依存ライブラリが正常に動作し、エラーなくアプリをビルドできるようになります。</p>



<p class="wp-block-paragraph">　もし、SDK 21以下の端末をどうしてもサポートしたい場合は、ライブラリの古いバージョンを使用するか、互換性を強制的に無視する方法もありますが、リスクが伴うため注意が必要です。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/flutter-minsdkversion-firebase-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ChatGPT「Something went wrong while generating the response」というエラーが出た話</title>
		<link>https://techgrowup.net/chatgpt-error/</link>
					<comments>https://techgrowup.net/chatgpt-error/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Thu, 12 Sep 2024 06:31:50 +0000</pubDate>
				<category><![CDATA[エラー集]]></category>
		<category><![CDATA[ChatGPT]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1802</guid>

					<description><![CDATA[問題 　Chatgptを利用している何度やっても、「Something went wrong while generating the response」というエラーが出続けていました 解決 　再ログインしても全く治らず [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">問題</h2>



<p class="wp-block-paragraph">　Chatgptを利用している何度やっても、「Something went wrong while generating the response」というエラーが出続けていました</p>



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



<h2 class="wp-block-heading">解決</h2>



<p class="wp-block-paragraph">　再ログインしても全く治らず、webサイトのキャッシュを消したら治りました。<br>まずChromeのデベロッパーツールを開きます。Windowsでは【Ctrl + Shift + I】もしくは【F12】キーで起動できます。Macでは【Command + Option + I】です。</p>



<p class="wp-block-paragraph">　開いたら「アプリケーション」->「ストレージ」タブと続いて、「サイトデータを削除」を押しましょう。<br>　その後、ページをリロードして再ログインすると直りました。</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="269" src="https://techgrowup.net/wp-content/uploads/2024/09/chatgpt-error-1024x269.webp" alt="" class="wp-image-1803" srcset="https://techgrowup.net/wp-content/uploads/2024/09/chatgpt-error-1024x269.webp 1024w, https://techgrowup.net/wp-content/uploads/2024/09/chatgpt-error-300x79.webp 300w, https://techgrowup.net/wp-content/uploads/2024/09/chatgpt-error-768x202.webp 768w, https://techgrowup.net/wp-content/uploads/2024/09/chatgpt-error.webp 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/chatgpt-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Flutter LoadError &#8211; dlopen errorの解消</title>
		<link>https://techgrowup.net/flutter-loaderror-dlopen/</link>
					<comments>https://techgrowup.net/flutter-loaderror-dlopen/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Fri, 17 Jun 2022 14:43:50 +0000</pubDate>
				<category><![CDATA[エラー集]]></category>
		<category><![CDATA[Flutter]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1533</guid>

					<description><![CDATA[問題 FlutterでiOS13のシミュレーターを動かそうとすると以下のエラーが出ました どうも、M1のMacでビルドしようとするとpod installに失敗してしまうようです。 解決方法 まず、以下をターミナル上で実 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">問題</h2>



<p class="wp-block-paragraph"> FlutterでiOS13のシミュレーターを動かそうとすると以下のエラーが出ました</p>



<pre class="wp-block-code"><code>LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle</code></pre>



<p class="wp-block-paragraph"> どうも、M1のMacでビルドしようとするとpod installに失敗してしまうようです。</p>



<h2 class="wp-block-heading">解決方法</h2>



<p class="wp-block-paragraph"> まず、以下をターミナル上で実行しましょう。</p>



<pre class="wp-block-code"><code>sudo arch -x86_64 gem install ffi</code></pre>



<p class="wp-block-paragraph"> 続いて、以下を実行しましょう。(Podfileが置かれているディレクトリで。Flutterなら/ios)</p>



<pre class="wp-block-code"><code>arch -x86_64 pod install</code></pre>



<p class="wp-block-paragraph"> これで pod installが上手くいくと思うのでビルドできるようになったと思います。<br>M1は時々よくわからないエラーに遭遇しますね。。。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/flutter-loaderror-dlopen/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Cannot lock checksums cache () as it has already been locked by this processが出たときの対処法</title>
		<link>https://techgrowup.net/cannot-lock-checksums-cache-as-it-has-already-been-locked-by-this-process%e3%81%8c%e5%87%ba%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95/</link>
					<comments>https://techgrowup.net/cannot-lock-checksums-cache-as-it-has-already-been-locked-by-this-process%e3%81%8c%e5%87%ba%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Mon, 11 Apr 2022 15:51:28 +0000</pubDate>
				<category><![CDATA[エラー集]]></category>
		<category><![CDATA[Androidアプリ開発]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1520</guid>

					<description><![CDATA[原因 私の場合はAndriodアプリの開発をしているときに出てきましたが、gradleを使おうとすると既に他のプロセスに使われていてロックされている状態になります。何度もビルドしようとしても同じエラーが出てしまうため意図 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">原因</h2>



<p class="wp-block-paragraph"> 私の場合はAndriodアプリの開発をしているときに出てきましたが、gradleを使おうとすると既に他のプロセスに使われていてロックされている状態になります。何度もビルドしようとしても同じエラーが出てしまうため意図的にロックされているファイルを消す必要がありました。</p>



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



<h2 class="wp-block-heading">対処法</h2>



<p class="wp-block-paragraph"> 下記コマンドを叩けば一発で直りました。</p>



<pre class="wp-block-code"><code>find ~/.gradle -type f -name "*.lock" -delete</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/cannot-lock-checksums-cache-as-it-has-already-been-locked-by-this-process%e3%81%8c%e5%87%ba%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Flutterのエラー (incompatible architecture (have &#8216;arm64&#8217;, need &#8216;x86_64&#8217;)), &#8216;/usr/lib/ffi_c.bundle&#8217; (no such file))</title>
		<link>https://techgrowup.net/flutter%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc-incompatible-architecture-have-arm64-need-x86_64-usr-lib-ffi_c-bundle-no-such-file/</link>
					<comments>https://techgrowup.net/flutter%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc-incompatible-architecture-have-arm64-need-x86_64-usr-lib-ffi_c-bundle-no-such-file/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Thu, 31 Mar 2022 17:01:17 +0000</pubDate>
				<category><![CDATA[エラー集]]></category>
		<category><![CDATA[Flutter]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1517</guid>

					<description><![CDATA[問題 突然iOSでビルドしようとすると下記のようなエラーが出てしまいました。iOSはあまり詳しくないですが、どうもM1のMacでビルドしようとすると出てくるエラーのようです。 解決法 私の環境では、下記のコマンドを実行す [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">問題</h2>



<p class="wp-block-paragraph"> 突然iOSでビルドしようとすると下記のようなエラーが出てしまいました。iOSはあまり詳しくないですが、どうもM1のMacでビルドしようとすると出てくるエラーのようです。</p>



<pre class="wp-block-code"><code>CocoaPods' output:
↳
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
    -> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
    -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
    -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
    Resolving dependencies of `Podfile`
Error output from CocoaPods:
↳
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    &#91;!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/ffi_c.bundle' (no such file) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle (LoadError)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi.rb:5:in `rescue in &lt;top (required)>'
        from /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi.rb:2:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:3:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440:in `download_typhoeus_impl_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372:in `download_and_save_with_retries_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365:in `download_file_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338:in `download_file'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53:in `refresh_metadata'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31:in `initialize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30:in `initialize'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `new'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `block in source_from_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322:in `source_from_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `block in aggregate_with_repos'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `map'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `aggregate_with_repos'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26:in `aggregate'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60:in `all'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:173:in `repo_information'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:77:in `stack'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:24:in `report'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:66:in `report_error'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:396:in `handle_exception'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:337:in `rescue in run'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:324:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `&lt;top (required)>'
        from /usr/local/bin/pod:23:in `load'
        from /usr/local/bin/pod:23:in `&lt;main>'
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- 2.6/ffi_c (LoadError)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi.rb:3:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:3:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440:in `download_typhoeus_impl_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372:in `download_and_save_with_retries_async'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365:in `download_file_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338:in `download_file'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53:in `refresh_metadata'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31:in `initialize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30:in `initialize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `new'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `block in source_from_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322:in `source_from_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `block in aggregate_with_repos'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `map'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `aggregate_with_repos'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26:in `aggregate'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60:in `all'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:173:in `repo_information'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:77:in `stack'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:24:in `report'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:66:in `report_error'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:396:in `handle_exception'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:337:in `rescue in run'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:324:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `&lt;top (required)>'
        from /usr/local/bin/pod:23:in `load'
        from /usr/local/bin/pod:23:in `&lt;main>'
 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/ffi_c.bundle' (no such file) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle (LoadError)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi.rb:5:in `rescue in &lt;top (required)>'
        from /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi.rb:2:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:3:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440:in `download_typhoeus_impl_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372:in `download_and_save_with_retries_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365:in `download_file_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338:in `download_file'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53:in `refresh_metadata'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31:in `initialize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30:in `initialize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `new'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `block in source_from_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322:in `source_from_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `block in aggregate_with_repos'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `map'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `aggregate_with_repos'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26:in `aggregate'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60:in `all'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:393:in `source_with_url'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/sources_manager.rb:22:in `find_or_create_source_with_url'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:178:in `block in sources'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:177:in `map'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:177:in `sources'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1077:in `block in resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in `section'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1076:in `resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:416:in `analyze'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in `section'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240:in `resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:161:in `install!'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `&lt;top (required)>'
        from /usr/local/bin/pod:23:in `load'
        from /usr/local/bin/pod:23:in `&lt;main>'
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- 2.6/ffi_c (LoadError)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi.rb:3:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:3:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `&lt;top (required)>'
2
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440:in `download_typhoeus_impl_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372:in `download_and_save_with_retries_async'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365:in `download_file_async'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53:in `refresh_metadata'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31:in `initialize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30:in `initialize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `new'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `block in source_from_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322:in `source_from_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `block in aggregate_with_repos'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `map'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `aggregate_with_repos'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26:in `aggregate'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60:in `all'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:393:in `source_with_url'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/sources_manager.rb:22:in `find_or_create_source_with_url'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:178:in `block in sources'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:177:in `map'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:177:in `sources'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1077:in `block in resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in `section'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1076:in `resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:416:in `analyze'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in `section'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240:in `resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:161:in `install!'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `&lt;top (required)>'
        from /usr/local/bin/pod:23:in `load'
        from /usr/local/bin/pod:23:in `&lt;main>'
Error running pod install
Error launching application on iPhone 13.</code></pre>



<h2 class="wp-block-heading">解決法</h2>



<p class="wp-block-paragraph"> 私の環境では、下記のコマンドを実行すると解決しました。Intel Cpuのモードでpod installすると直るという感じでしょうか。</p>



<pre class="wp-block-code"><code>sudo arch -x86_64 gem install ffi
arch -x86_64 pod install</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/flutter%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc-incompatible-architecture-have-arm64-need-x86_64-usr-lib-ffi_c-bundle-no-such-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Error: &#8220;export &#8216;useId&#8217; (imported as &#8216;React&#8217;) was not found in &#8216;react&#039;&#8221;の解消</title>
		<link>https://techgrowup.net/mui-error/</link>
					<comments>https://techgrowup.net/mui-error/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Sun, 28 Nov 2021 12:54:10 +0000</pubDate>
				<category><![CDATA[エラー集]]></category>
		<category><![CDATA[React]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1400</guid>

					<description><![CDATA[　Reactでmuiを利用して開発をしていると、タイトルのようなWarningが出てしまいました。同じような境遇の方がいれば下記に変更すれば直ります。 　下記のissueで色々議論されていましたが、最終的に5.2.1のバ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　Reactでmuiを利用して開発をしていると、タイトルのようなWarningが出てしまいました。同じような境遇の方がいれば下記に変更すれば直ります。</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">@mui/material&#8221;と&#8221;@mui/utils&#8221;のバージョンを5.2.1以上にあげましょう</p>
</div>



<p class="wp-block-paragraph">　下記のissueで色々議論されていましたが、最終的に5.2.1のバージョンでfixされました。４日前にはwebpackで「strictExportPresence」をtrueやfalseにすれば直るという意見がありましたが、現在は5.2.1にアップデートすれば直ります。</p>



<p class="wp-block-paragraph">以上です</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/mui-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ERROR in SplitChunksPlugin Cache group &#8220;default&#8221; conflicts with existing chunk</title>
		<link>https://techgrowup.net/error-splitchunksplugin-default-conflict/</link>
					<comments>https://techgrowup.net/error-splitchunksplugin-default-conflict/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Fri, 12 Nov 2021 10:35:52 +0000</pubDate>
				<category><![CDATA[エラー集]]></category>
		<category><![CDATA[webpack]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1381</guid>

					<description><![CDATA[　React,Typescript,webpackで開発をしているときに、タイトルのエラーが起きました。Webpack周りの知見があまりなかったので、解消した方法を紹介します。エラーの全文は下記になります。 　 　私のw [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　React,Typescript,webpackで開発をしているときに、タイトルのエラーが起きました。Webpack周りの知見があまりなかったので、解消した方法を紹介します。エラーの全文は下記になります。</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">ERROR in SplitChunksPlugin<br>Cache group &#8220;default&#8221; conflicts with existing chunk.<br>Both have the same name &#8220;vendor&#8221; and existing chunk is not a parent of the selected modules.<br>Use a different name for the cache group or make sure that the existing chunk is a parent (e. g. via dependOn).<br>HINT: You can omit &#8220;name&#8221; to automatically create a name.<br>BREAKING CHANGE: webpack &lt; 5 used to allow to use an entrypoint as splitChunk. This is no longer allowed when the entrypoint is not a parent of the selected modules.<br>Remove this entrypoint and add modules to cache group&#8217;s &#8216;test&#8217; instead. If you need modules to be evaluated on startup, add them to the existing entrypoints (make them arrays). See migration guide of more info.</p>
</div>



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



<p class="wp-block-paragraph"><meta charset="utf-8">　私のwebpack.common.jsは下記のような感じでした。※公開できない情報は消しています。</p>



<pre class="wp-block-code"><code>module.exports = {
  entry: {
    app: path.join(srcDir, "app.ts"),
  },
  output: {
    path: path.join(__dirname, "../dist/js"),
    filename: "&#91;name].js",
  },
  optimization: {
    splitChunks: {
      name: "vendor",
      chunks:'initial',
    }
  },
  module: {
    rules: &#91;
      {
        test: /\.tsx?$/,
        use: "ts-loader",
        exclude: /node_modules/,
      },
    ],
  },
  resolve: {
    extensions: &#91;".ts", ".tsx", ".js"],
  },
  plugins: &#91;
    new CopyPlugin({
      patterns: &#91;{ from: ".", to: "../", context: "public" }],
      options: {},
    }),
  ],
};
</code></pre>



<p class="wp-block-paragraph">　原因としては、Webpack 5以上からSplitChunksPluginのCache groupでデフォルトで、nameが&#8221;vendor&#8221;となっているので、重複して書いていたことが原因でしたので、optimization.splitChunks.nameを消すことで解消されます。下記のような感じです。</p>



<pre class="wp-block-code"><code>  optimization: {
    splitChunks: {
      chunks:'initial',
    }
  },</code></pre>



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



<p class="wp-block-paragraph">　以上です。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/error-splitchunksplugin-default-conflict/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The minCompileSdk (31) specified in a dependency&#8217;s AAR metadataエラー解消</title>
		<link>https://techgrowup.net/the-mincompilesdk-31-specified-in-a-dependencys-aar-metadata%e3%82%a8%e3%83%a9%e3%83%bc%e8%a7%a3%e6%b6%88/</link>
					<comments>https://techgrowup.net/the-mincompilesdk-31-specified-in-a-dependencys-aar-metadata%e3%82%a8%e3%83%a9%e3%83%bc%e8%a7%a3%e6%b6%88/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Sun, 07 Nov 2021 13:35:40 +0000</pubDate>
				<category><![CDATA[エラー集]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1371</guid>

					<description><![CDATA[　Androidアプリを作成してビルドしようとしたら、下記エラーが表示されました。aar-metadata.propertiesで指定されているminCompileSdk(31)がビルドしようとしているモジュールのcom [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　Androidアプリを作成してビルドしようとしたら、下記エラーが表示されました。aar-metadata.propertiesで指定されているminCompileSdk(31)がビルドしようとしているモジュールのcompileSdkVersion(30)より大きいと記載されています。</p>



<pre class="wp-block-code"><code>The minCompileSdk (31) specified in a　dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)　is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.core:core-ktx:1.7.0.</code></pre>



<h3 class="wp-block-heading">解決方法1つ目</h3>



<p class="wp-block-paragraph">　まずシンプルに解決する方法として、<strong>build.gradle</strong>(app)の<strong>compileSdkVersion</strong>と<strong>targetSdkVersion</strong>を31に変えましょう。こうすることでaar-metadata.propertiesで指定されているバージョンと合致するので、この問題はなくなります。</p>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box ng-box">
<p class="wp-block-paragraph">2021/11/05時点、buildToolsVersionを31.0.0でビルドしようとすると、エラーが置きましたので、こちらで上手く行かない場合は、解決方法２つ目を試してください</p>
</div>



<h3 class="wp-block-heading">解決方法２つ目</h3>



<p class="wp-block-paragraph">　むやみに<meta charset="utf-8"><strong>compileSdkVersion</strong>と<strong>targetSdkVersion</strong>のバージョンを上げたくないという方は、下記のコードを<strong>build.gradle(app)</strong>のdefaultConfigの中にconfiguration.allのコードを加えてあげましょう。</p>



<pre class="wp-block-code"><code>    defaultConfig {
        configurations.all {
            resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' }
        }
    }</code></pre>



<p class="wp-block-paragraph">エンジニアを1から学びたい方は、<a rel="noopener" target="_blank" href="https://px.a8.net/svt/ejp?a8mat=3HCFD9+6MQUCY+3GOM+I1NCI">【CodeCampGATE】<span class="fa fa-external-link external-icon anchor-icon"></span></a>もオススメです！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/the-mincompilesdk-31-specified-in-a-dependencys-aar-metadata%e3%82%a8%e3%83%a9%e3%83%bc%e8%a7%a3%e6%b6%88/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
