Ошибка сборки Unity3d Android (kotlinx-coroutines-core-jvm VS kotlinx-coroutines-core)Android

Форум для тех, кто программирует под Android
Гость
Ошибка сборки Unity3d Android (kotlinx-coroutines-core-jvm VS kotlinx-coroutines-core)

Сообщение Гость »


I have next error in my Android application build:

Код: Выделить всё

Execution failed for task ':unityLibrary:mergeReleaseJavaResource'. > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction    > 2 files found with path 'META-INF/kotlinx_coroutines_core.version' from inputs:           - .../Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.7.1.jar           - .../Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/org.jetbrains.kotlinx.kotlinx-coroutines-core-1.7.1.jar      Adding a packagingOptions block may help, please refer to      https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html      for more information 
I managing the dependencies with Google jar-resolver. Both

Код: Выделить всё

org.jetbrains.kotlinx.kotlinx-coroutines-core-1.7.1.jar
and

Код: Выделить всё

org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.7.1.jar
are transitive dependencies. I can exclude one of them, but which one? And is it safe? What is difference between jvm and regular versions for these?

P.S. This error becomes appear after I update AdMob plugin, so one of them should be a dependency of the AdMob.


Источник: https://stackoverflow.com/questions/772 ... routines-c

Вернуться в «Android»