I finally updated ironSrouce to 7.7.0 found here.
Here is what I did.
I downloaded and installed package
I downloaded and added the “Ad Quality dependency XML” to Assets/IronSource/Editor
I installed/updated the adapters in Unity Integration Manager ( I use ironSource, UnityAds, Admob )
I updated the Mobile Dependency Manager found here
I checked all my settings to match in the Mobile Dependency Manager as seen in the guide, including step 4 for additional setup for Android.
I clicked resolve, and deleted resolved libraries
I deleted the duplicated ironSource plugin, and kept only the Assets/IronSource/Plugins/Android/IronSource.androidlib
I build.
The error I get is
Yeah, I completely forgot, I should have updated iron source from the integration manager, instead, anyways
my game hangs at the initialization part. this is the only piece of code I use
It has only happened since I updated the SDK. I tried only on this specific project yet, though not in any other projects.
The live version of the game (with an older SDK version) works as intended. code is exactly the same, nothing changed.
AILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':launcher:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':launcher:debugRuntimeClasspath'.
> Failed to transform androidx.fragment.fragment-1.7.0-alpha09-.aar (:androidx.fragment.fragment-1.7.0-alpha09:) to match attributes {artifactType=android-manifest, org.gradle.status=integration}.
> Execution failed for JetifyTransform: C:\Unity\SMXAndroid\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\androidx.fragment.fragment-1.7.0-alpha09.aar.
> Failed to transform 'C:\Unity\SMXAndroid\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\androidx.fragment.fragment-1.7.0-alpha09.aar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 61. (Run with --stacktrace for more details.)
Suggestions:
- Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
- If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).
> Failed to transform androidx.work.work-runtime-2.10.0-alpha01-.aar (:androidx.work.work-runtime-2.10.0-alpha01:) to match attributes {artifactType=android-manifest, org.gradle.status=integration}.
> Execution failed for JetifyTransform: C:\Unity\SMXAndroid\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\androidx.work.work-runtime-2.10.0-alpha01.aar.
> Failed to transform 'C:\Unity\SMXAndroid\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\androidx.work.work-runtime-2.10.0-alpha01.aar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 61. (Run with --stacktrace for more details.)
Suggestions:
- Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
- If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).
* 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 1s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
I tried the Gradle downgrade mentioned here Upgrade Gradle for Android | Unity | Google for Developers but there is no option in the external dependencies tool to patch the baseProjectTemplate.gradle with the right info besides what is mentioned in the guide. In the end, I updated the project to Unity 2022.2 to completely by pass modifying the baseProjectTemplate.gradle, and Solved.