UnityAds Unsupported class file major version 61

I can’t complete the External Dependency Manager → Resolve after i add the UnityAds Adapter trough the Level Play Integration Manager, i get an error during the resolve that says: “Unsupported class file major version 61”.

Without the UnityAds Adapter it works fine, i can Resolve the External Dependencies, build, play and run the LevelPlay demo scene.

I’m using all the default Unity Hub versions of the JDK and SDK.
Unity version 2022.3.11f1

Hi EDevJogos,

Oh, lol! I detected the same issue and spent 3 hours trying to understand what I was doing wrong. This is my first game and my initial attempt at integrating ads into it. So, I discovered that looks like it works normal on the preview version of is manager - v7.5.1.
Hope it will work for you too.

Thanks,
Andrei.

We are aware of this issue: LP SDK v7.5.2 & Unity Adapter v4.3.39, kindly confirm if it’s the case, If yes, please try to use Unity Adapter to v4.3.38 instead for now., it should work.
PS: We are working on a permanent solution.
Let’s know if any problems.

@yunanhou

Can you guys please tell me how in the world to fix this. I do not know how to downgrade this software since there is no option provided in the LevelPlayer Integration Manager. IronSource is also broken on 7.6.0 so I was able to download v7.5.2 and that seems to work.

I am on Unity version 2022.3.14f1 which has java version 11.

Here is a copy of my ISUnityAdsAdapterDependencies.xml.

<dependencies>
<unityversion>4.3.39.0</unityversion>
<androidPackages>
<androidPackage spec="com.ironsource.adapters:unityadsadapter:4.3.34">
<repositories>
<repository>https://android-sdk.is.com/</repository>
</repositories>
</androidPackage>
</androidPackages>
<androidPackages>
<androidPackage spec="com.unity3d.ads:unity-ads:4.9.2">
<repositories>
<repository>https://maven.google.com/</repository>
</repositories>
</androidPackage>
</androidPackages>

<iosPods>
<iosPod name="IronSourceUnityAdsAdapter" version="4.3.34.0">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
</iosPod>
</iosPods>
</dependencies>

Here is output from the dependency resolver which only happens after I install Unity Ads:

* What went wrong:
Execution failed for task ':process_androidx.activity.activity-1.9.0-alpha01.aar'.
> Unsupported class file major version 61

I don’t even know how to uninstall unity ads, let alone downgrade it.

I downgraded ironsource to v7.4.0 and that seemed to finally fix it.

Yall unity devs really need to fix this, this is a giant mess.

How do we downgrade Unity Adapter to v4.3.38, there is no way to manage the versions in Unity.

Did you manage to fix something? It’s quite urgent as a fix.
We cannot updated IronSource and mediations cause of this problem.

Furthermore ‘Force Resolve’ stopped working after Febrarury 1. I don’t know if it’s anything changed in the backend, but on Febrarury 1 I could resolve the dependencies. Now, it gives me error without touching anything in the project.
This is preventing me from update any plugins which require a dependencies resolution step.

I got it working. Steps I did below.

  • Delete IronSource folder
  • Fix your Android Resolution Issues (I had to delete the .jar and.aar files in Assets/Plugins/Android)
  • Reinstall IronSource/Unity Ads, I didn’t update IronSource, using version 7.2.5.2.