Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Build FAILURE: Failed to transform inmobi-10.7.7.0.aar #3671

Open
liiyau opened this issue Nov 7, 2024 · 2 comments
Open

Android Build FAILURE: Failed to transform inmobi-10.7.7.0.aar #3671

liiyau opened this issue Nov 7, 2024 · 2 comments
Assignees
Labels
Mediation Mediation / adapter issue. P2 Issue.

Comments

@liiyau
Copy link

liiyau commented Nov 7, 2024

  • Unity version: 2020.3.48f1
  • Google Mobile Ads Unity plugin version: 9.2.0
  • Plugin installation method: .unitypackage import
  • Platform: Android

FAILURE: 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 inmobi-10.7.7.0.aar (com.google.ads.mediation:inmobi:10.7.7.0) to match attributes {artifactType=android-manifest, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: C:\Users\lbncf.gradle\caches\modules-2\files-2.1\com.google.ads.mediation\inmobi\10.7.7.0\86c241245ef06471372e4b5f5cb6105dfe38e800\inmobi-10.7.7.0.aar.
> Failed to transform 'C:\Users\lbncf.gradle\caches\modules-2\files-2.1\com.google.ads.mediation\inmobi\10.7.7.0\86c241245ef06471372e4b5f5cb6105dfe38e800\inmobi-10.7.7.0.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.
@NVentimiglia NVentimiglia self-assigned this Nov 8, 2024
@NVentimiglia NVentimiglia added the Mediation Mediation / adapter issue. label Nov 8, 2024
@NVentimiglia
Copy link
Member

Hi @liiyau I think you might be running into a compatibility conflict between gradle and java. Newer android libraries depend on newer gradle / java versions where older Unity engines use older versions of gradle / java and the Unity engine versions are not forward compatible. We are currently working on a doc describing the issue in debt.

As a work around I suggest you upgrade to a newer version of Unity (2023) or export the project to Android Studio and manually set the project to use Java 17 and a newer gradle version

https://stackoverflow.com/questions/69425829/unsupported-class-file-major-version-61-error

@NVentimiglia NVentimiglia added the P2 Issue. label Nov 18, 2024
@NVentimiglia
Copy link
Member

@liiyau can you update to the latest version (4.6.7) of the InMobi Unity plugin.

In a recent Android InMobi adapter, we updated the Android Gradle plugin version used for building the InMobi adapter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mediation Mediation / adapter issue. P2 Issue.
Projects
None yet
Development

No branches or pull requests

2 participants