Error related to Levelplay Update:2 files found with path 'META-INF/kotlinx_coroutines_core.version'

Hello, I use unity levelplay for displaying my ads, I had created a unity game that used Ironsource and Unity Ads adapters and build and published it, no problem at first. Then however, I wanted to upgrade to the new version of the ironsource and unity ads adapters and on top integrate the google ad adapter, in hopes of increasing my ad revenue. In order to upgrade to the newer versions , I deleted my entire Ironsource folder (under “Assets/Ironsource”) and then installed the adapters via the Levelplay integration manager (under “Ads Mediation/Integration Manager”). However, after reimporting everything and trying to build my game now, there is an error and the build failed. When I opened the Editor.log it said the following message:

" * What went wrong: Execution failed for task ‘:launcher: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:

This could theoretically also have something to do with the fact that when I tried to resolve under “Assets/Mobile Dependency Resolver/Android Resolver/Resolve”, the resolution kept failing at first, sending following messages into the Editor.log file: “Failed to fetch the following dependencies: org.jetbrains.kotlin:kotlin-bom:1.8.10”

I have been trying to fix this for 2 days now, but can’t seem to find any solution, therefore help would be more than very much appreciated, thanks in advance.

3 Likes

Thanks for your question, it seems that there is some issue with your Unity editor and dependency environments. Can you share below info please?

  • Unity Editor version?
  • Gradle version if you are referring to an external one
  • LevelPlay SDK and adapter version.
  • Sample project which can replicate the the issue

Meanwhile, we recommend you to file case here with above info and our tech team will assist you further.

Thanks

I am getting the same error “Failed to fetch the following dependencies: org.jetbrains.kotlin:kotlin-bom:1.8.10” when resolving andriod dependency using “Assets/Mobile Dependency Resolver/Android Resolver/Resolve”

unity editor version: 2021.3.7f1
gradle version: built-in (which came with unity editor)
levelplay sdk: IronSource_IntegrationManager_v7.5.1
admob adopter version: 4.3.54.0
unity ads adopter version: 4.3.36.2

I have the same “Failed to fetch the following dependencies: org.jetbrains.kotlin:kotlin-bom:1.8.10” error.
I also have some more information: the problem started with LevelPlay sdk “IronSource_IntegrationManager_v7.3.1.1”.
And the problem happens when you have also IronSource and OneSignal in the project.
This is a sample project where the problem is easily triggerable by resolving android dependencies (android-resolution-conflict.zip - Google Drive)

We are using Unity 2021.3.28f1 with the built-in JDK, SDK, NDK and gradle versions.

These are the other things in the project that are triggering the problem:

  • IronSource 7.3.1.1 or higher
  • IronSource adapter - UnityAds 4.3.36.0 or higher
  • OneSignal 3.0.9 or higher (EDIT: OneSignal 3.0.5 or higher)
  • External Dependency Manager for Unity 1.2.175 or higher

I’m looking for a solution since 2 months but I haven’t managed to fix it yet!

NOTE: I opened a ticket to IronSource, the ticket is #00352919, but they only replied asking me trying to update gradle. I don’t know if it’s the only solution, but in case, it would be great to know which version is the suggested one for the fix.

I also have OneSignal v 3.0.5.

Ok, I’ll update the info above (specifing OneSignal 3.0.5 or higher).
I’m pretty sure we have the same problem so. Let’s see if someone from Unity can help us.

Just a quick update: I have just downloaded gradle-8.3 (latest) and set it in the Unity path.
The resolution still fail with the same error.

1 Like

I tried with unity ads and ironsource ads adopter but without adding admob adopter → under “Ads Mediation/Integration Manager”) and it works.

So I think admob adopter is creating a problem.Can you do the same and verify it?

Mmm… this is very strange!
In the test project I linked in the message above, it’s failing with only IronSource, OneSignal and UnityAds.

However I’ve just tried deleting AdMob and it is still failing to me.
Can you please download the test project above and tell me if it works for you?

Hi, thanks for the answer:

  1. I am using Unity Editor version 2022.2.9f1
  2. I am using the built-in gradle version
  3. I am basically using all the newest SDK and adapter versions:
    a) My ironSource levelplay SDK version is 7.5.1
    b) My UnityAds adapter version is 4.3.36.2
    c) My Google(AdMob and Ad Manager) adapter version is 4.3.54.0
  4. I uploaded my project to google drive and this is the link: https://drive.google.com/drive/folders/13MF_9xVd9eFpchhmi9e2a2kKZpN6YLVB?usp=sharing (I have changed the values of my appKeys and disabled my custom keystore for privacy reasons so that no everyone can see them by the way, though this doesn’t affect the error.)

I tried your provided project and it is working fine. i also generated apk file with it. I used unity editor 2021.3.7f1

I have just retried, and I have errors.
So, should we conclude that it is related in some way to the environment where to dependencies resolution is running? If so, what settings should we check on our machines?

It seems really strange to me honestly. I would expect it depends on Unity version, not on the env.

Same problem, did you solve it?

same error for applovin and airbridge io with appsflyer with facebook sdk makes this issue for me

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

  • What went wrong:
    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:

  • 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 13s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Another error console…

Configure project :launcher
=============================================================================
AppLovin Quality Service Plug-in for Gradle and Android Studio Version 4.13.5
Copyright (c) 2023 AppLovin Ltd. All rights reserved.
=============================================================================
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32

This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=33
to this project’s gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

Task :launcher:preBuild UP-TO-DATE
Task :launcher:preReleaseBuild UP-TO-DATE
Task :unityLibrary:preBuild UP-TO-DATE
Task :unityLibrary:preReleaseBuild UP-TO-DATE
Task :unityLibrary:compileReleaseAidl NO-SOURCE
Task :launcher:generateReleaseBuildConfig UP-TO-DATE
Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
Task :launcher:compileReleaseAidl NO-SOURCE
Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
Task :launcher:javaPreCompileRelease UP-TO-DATE
Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
Task :launcher:generateReleaseResValues UP-TO-DATE
Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
Task :launcher:extractDeepLinksRelease UP-TO-DATE
Task :launcher:extractProguardFiles UP-TO-DATE
Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
Task :unityLibrary:generateReleaseResValues UP-TO-DATE
Task :unityLibrary:generateReleaseResources UP-TO-DATE
Task :unityLibrary:packageReleaseResources UP-TO-DATE
Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
Task :unityLibrary:processReleaseManifest UP-TO-DATE

Task :launcher:checkReleaseDuplicateClasses
WARNING: [Processor] Library ‘C:\UnityProject\Strike2048 SC\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\androidx.core.core-1.9.0.aar’ contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
Example of androidX reference: ‘androidx/versionedparcelable/VersionedParcel’
Example of support library reference: ‘android/support/v4/app/RemoteActionCompatParcelizer’

Task :launcher:mergeReleaseShaders UP-TO-DATE
Task :launcher:compileReleaseShaders NO-SOURCE
Task :launcher:generateReleaseAssets UP-TO-DATE
Task :launcher:processReleaseJavaRes NO-SOURCE
Task :launcher:collectReleaseDependencies
Task :launcher:sdkReleaseDependencyData
Task :launcher:validateSigningRelease UP-TO-DATE
Task :launcher:writeReleaseAppMetadata UP-TO-DATE
Task :launcher:writeReleaseSigningConfigVersions UP-TO-DATE
Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
Task :unityLibrary:compileReleaseShaders NO-SOURCE
Task :unityLibrary:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:packageReleaseAssets
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
Task :unityLibrary:prepareReleaseArtProfile UP-TO-DATE
Task :unityLibrary:processReleaseJavaRes UP-TO-DATE
Task :unityLibrary:writeReleaseAarMetadata UP-TO-DATE
Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
Task :unityLibrary:bundleLibResRelease UP-TO-DATE
Task :unityLibrary:writeReleaseLintModelMetadata UP-TO-DATE
Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
Task :launcher:mergeReleaseAssets
Task :launcher:compileReleaseRenderscript NO-SOURCE
Task :launcher:generateReleaseResources UP-TO-DATE
Task :launcher:checkReleaseAarMetadata
Task :unityLibrary:generateReleaseRFile
Task :unityLibrary:mergeReleaseJavaResource FAILED
Task :unityLibrary:extractReleaseAnnotations
Task :launcher:mergeReleaseResources
41 actionable tasks: 10 executed, 31 up-to-date

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Haven’t solved it yet.
I’m also trying to update the whole project to Unity 2022.3.10f1 but it does not help, same

Resolution failed
Failed to fetch the following dependencies:
org.jetbrains.kotlin:kotlin-bom:1.8.10

error when trying to resolve Android dependencies.

And, even without updating the UnityAds to the latest version, with Unity 2022.3.10 the same build error reported above appear.

@yunanhou , any news about these topics (dependencies resolution and build error)?

Same problem here with Unity 2022.3.10 and also tested with Unity 2022.3.4.

Edit: Fixed by deleting org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.7.1.jar …

1 Like

It fixed the build but I guess you will have problem with some plugin that actually has that package as a dependency.
Or did you find anything else that justify the .jar deletion?

1 Like

Yes it’s just a temporary solution to ship my app as I don’t have the possibility to wait for an Unity official fix. I tested every part of my app and no crash so far… but I don’t like being on the edge like that but it seems org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.7.1.jar is only for Unity (java virtual machine) …

I tried the same and my app crash on startup because the OneSignal initialization is failing.
I guess you don’t have OneSignal, am I right?

1 Like

:S Yes I just use Admob (without OneSignal and IronSource) …