LoginSignup
0
0

Unity で 2 files found with path 'META-INF/kotlinx_coroutines_core.version' となってしまう問題

Posted at

Unity にて、 以下のようなエラーが出てしまった時の対処法を見つけたので紹介します。

前提

Unity 2023.1.15f1 にて、 Android ビルド(aab)作成時に以下のエラーが出てbuild できませんでした。

error
unity android.bundle.enableUncompressedNativeLibs=false' is deprecated.
error
2 files found with path 'META-INF/kotlinx_coroutines_core.version'
error
unity A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction

対処法

Player > Android > Publish Setting

Custom Luncher Gradle Template にチェック ✅

49行目に以下を追加

launcherTemplate.gradle
**PACKAGING_OPTIONS**
   packagingOptions {
       exclude('META-INF/kotlinx_coroutines_core.version')
    }

Android Reslver > Force Resolve を実行

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0