I’ve added the Ads Mediation package to my project.
With this, I’ve had to add the “Mobile Dependency Resolver” too.
When the prompt: “Resolving Android Dependencies” opens, it keeps getting stuck at 0% and I get the following error message in the console:
Win32Exception: Application Name= ‘F:\UnityProjects\Test\Temp\PlayServicesResolverGradle\gradlew.bat’, CommandLine='–no-daemon -b
Native error= The System cannot find the file specified.
I think it’s the gradlew.bat file in question.
However, when I’m looking up the folder, the file does indeed exist, but it doesn’t have the .bat ending, it’s simply named gradlew.
When I’m changing the name manually to gradlew.bat, the Android Dependencies are being resolved until like 8%, but then it crashes with an other error: Resolution failed. Failed to fetch the following dependencies: com.ironsource.sdk:mediationsdk:7.2.6 and some other.
I want to note, that I’ve installed the mediation tool via the unity package manager.
How can I fix this?
Same here
so apparently checking “Custom Main Gradle Template” and “Custom Gradle Properties Template” in publishing settings allowed it to resolve but had many errors on release build. After resolving, I unchecked them both then did a debug release and the apk built.
Win32Exception: ApplicationName='C:\Users\omitted\Temp\PlayServicesResolverGradle\gradlew.bat', CommandLine='--no-daemon -b "C:\omitted\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=C:/Program Files/Unity/Hub/Editor/2021.3.16f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=C:\omitted\Assets\Plugins\Android" "-PMAVEN_REPOS=https://android-sdk.is.com/;https://maven.google.com/" "-PPACKAGES_TO_COPY=com.ironsource.sdk:mediationsdk:7.2.6;com.google.android.gms:play-services-ads-identifier:18.0.1;com.google.android.gms:play-services-basement:18.1.0;com.ironsource.adapters:unityadsadapter:4.3.24;com.unity3d.ads:unity-ads:4.4.1" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=4.0.1"', CurrentDirectory='C:\omitted\Temp\PlayServicesResolverGradle', Native error= The system cannot find the file specified.
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <cb1c94a571d140989f59bc38dfed683a>:0)
System.Diagnostics.Process.Start () (at <cb1c94a571d140989f59bc38dfed683a>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
GooglePlayServices.CommandLine.RunViaShell (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler, System.Boolean useShellExecution, System.Boolean stdoutRedirectionInShellMode) (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
GooglePlayServices.CommandLine.Run (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler) (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
GooglePlayServices.CommandLine+<RunAsync>c__AnonStorey0.<>m__1 () (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <75633565436c42f0a6426b33f0132ade>:0)
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <75633565436c42f0a6426b33f0132ade>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <75633565436c42f0a6426b33f0132ade>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <75633565436c42f0a6426b33f0132ade>:0)
System.Threading.ThreadHelper.ThreadStart () (at <75633565436c42f0a6426b33f0132ade>:0)
UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)
I decided to remove ironsource and go with google ad mob and within 10 minutes I had everything working with no issues or hackarounds. I have had nothing but headaches for the past 2 weeks trying to get everything working with ironsource. Worst migration and unity switch ever.
It seems the dependencies needed to get IronSource running is nowhere to be found on any of the repo sources so the resolver can’t download any of the packages. Super annoying.
If you look inside the Ironsource Files you will find the AWS download link to the resolver, The download link event itself is broken. You can copy paste the link. But I would advise to ditch Ironsource. I had some major issues day in day out.
I switched over to Google Admob in 15 minutes and haven’t had 1 issue since.
i’m having the same issue !!! anyone fixed this?
Apparently everyone is having this issue, including me, bruh…
Hello! We are looking into this issue now! What version of com.ironsource.sdk:mediationsdk are you using? I see this is an issue for 7.2.6, as shown by Lukanto. I have encountered this issue with 7.2.7. Will post an update here when I have more to update you all with.
Hi Glen, has there been an update?
Hi Glen, just circling back to see if there is an update.
Thank-you
How I managed to go through the installation without errors:
- Completely clear the project from any attempted installations of the IronSource SDK (LevelPlay Mediation)
- Close Unity and Unity Hub
- Install latest version of Java JDK (version 19 at this time)
- Set the JAVA_HOME Windows environment variable to “C:\Program Files\Java\jdk-19”
- Launch Unity
- Install the latest Google Android Dependency Manager unity package
- Check “Custom Main Gradle Template” and “Custom Gradle Properties Template” in Player Settings > Publishing Settings
- Install the latest version of the LevelPlay Mediation package
After the installation insert the following lines to the “gradleTemplate.properties” file:
android.useAndroidX=true
android.enableJetifier=true
You should now be able to build and use IronSource.
Ok that got me a lot closer, now I’m getting errors on these dependencies failing to resolve. ![]()
com.ironsource.adapters:unityadsadapter:4.3.24
com.ironsource.adapters:applovinadapter:4.3.36
com.ironsource.sdk:mediationsdk:7.2.7
So many people seem to have problems with it. Including me. Why there is a new Ads package out anyway? Was Unity Ads wrong? Or is it about getting maximum ad sources in your game? I don’t get it.
Hi! I managed to solve this issue like this:
- Remove the IronSource SDK from your project (including the Mobile Dependencies stuff in the Assets/Editor directory, if you have something there)
- Install the latest External Dependency Manager (EDM) from google manually. You can go to Tags · googlesamples/unity-jar-resolver · GitHub and use the download link of the latest version there to get the .unitypackage. Currently that link is: https://github.com/googlesamples/unity-jar-resolver/raw/v1.2.175/external-dependency-manager-1.2.175.unitypackage
- Afterwards, add the Iron Source SDK again.
Seems to me, like the EDM integration in the IronSource package is faulty.
I tried your suggestion but I got the same problem.
The steps I did was
- remove ironsource
- remove MobileDependencyResolver folder
- remove ExternalDependencyManager folder
- import that updated dependency manager from google that you linked
- import ironsource again
I get hung up on the same dependencies failing to resolve.
@DavidLiebermann Are you using the latest version of IronSource 7.2.7?
@voporak5 Sorry, I was sure this didn’t matter, but I actually used the IronSource 7.2.6 SDK from Release IronSource_7.2.6 · ironsource-mobile/Unity-sdk · GitHub and then, after successfully resolving with the EDM, upgraded the SDK using the integration manager.
Let me know, if this works, that’d be even crazier then the current solution…
Unfortunately that did not.
What version of Unity are you using?
I am on 2022.2.2f1
Also did you do the custom gradle template and properties like the Star_Maker suggested?
I enabled those settings as well.
I’m using 2021.3.9f1.
I’ve tried using a custom gradle template and properties, did not work for me. Maybe try disabling that?