When I am trying to resolve dependencies i am getting this error!
- What went wrong:
Execution failed for task ‘:process_androidx.annotation.annotation-experimental-1.4.0.aar’.
Unsupported class file major version 61
Please Need Help
When I am trying to resolve dependencies i am getting this error!
Unsupported class file major version 61
Please Need Help
Looks like androidx.annotation.annotation-experimental-1.4.0.aar was compiled with Java version newer than you use. To solve - either use older version of androidx.annotation.annotation or newer Java (I’d go with first option)
Please can you explain how to use old version of androidx.annotation.annotation ?
You should find out where exactly that dependency is coming from. One of the options would be looking through dependencies.xml of your project’s plugins, another - exporting Unity project and checking dependency tree in Android studio.
One you know that - you can try either replacing that dependency with older version or downgrading plugin version
In the same situation here with Levelplay with Admob network. I’m using:
I understand downgrade the androidx.annotation.annotation-experimental-1.4.0.aar how can I get that? Here is my ISAdMobAdapterDependencies.xml:
<dependencies>
<unityversion>4.3.67.0</unityversion>
<androidPackages>
<androidPackage spec="com.google.android.gms:play-services-ads:23.5.0">
<repositories>
<repository>https://maven.google.com/</repository>
</repositories>
</androidPackage>
</androidPackages>
<androidPackages>
<androidPackage spec="com.ironsource.adapters:admobadapter:4.3.47">
<repositories>
<repository>https://android-sdk.is.com/</repository>
</repositories>
</androidPackage>
</androidPackages>
<iosPods>
<iosPod name="IronSourceAdMobAdapter" version="4.3.58.0">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
</iosPod>
</iosPods>
</dependencies>
Any other alternative solution?
I downgraded the AdMob adapter to successfully build our project.
Were you able to solve the issue? Since I’m using source control, I discarded 3 or 4 files related to the AdMob adapter update. For me, it wasn’t worth spending more time trying to find a solution, as I didn’t encounter any issues with the previous version of the AdMob adapter.
We haven’t solve the problem yet. Sadly, we are still waiting for a response from ironSource. Which versions of Admob adapter, Ads Mediation package and Level mediation are you using?
how you do this???
– YousafGrewal