question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.UnsupportedOperationException: This feature requires ASM7

See original GitHub issue

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2020.3.19f1
  • Google Mobile Ads Unity plugin version: 7.3.0
  • Platform: Android
  • Platform OS version: _____
  • Any specific devices issue occurs on: _____
  • Mediation ad networks used, and their versions: NO

[REQUIRED] Step 2: Describe the problem

Cannot build with plugin version 7.3.0 or higher and string android.enableDexingArtifactTransform=false in gradleTemplate.properties. Getting error java.lang.UnsupportedOperationException: This feature requires ASM7

Steps to reproduce:

Download and try to build the attached project in Unity 2020.3.19f1 GMA730.zip

Additionally:

The bug is not reproducible with plugin version 7.2.0 and lower GMA720.zip

It looks like the problem is in the googlemobileads-unity.aar compiled with Java 11 in plugin version 7.3.0 image while plugin version 7.2.0 was compiled with Java 7 image

Furthermore. The attached project with plugin version 7.3.0 can be built in Unity 2022.2.0 since it was added support for Java 11 https://unity.com/releases/editor/whats-new/2022.2.0#:~:text=Android%3A JDK 11 is now required to build Android apps.

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
NVentimigliacommented, Mar 21, 2023

Thank everyone,

The Gradle versioning can be super difficult. Thank your trouble shooting this.

0reactions
desousecommented, Apr 3, 2023

@NVentimiglia OK. As I understand googlemobileads-unity.aar won’t be compiled with Java 7 or 8 anymore. In this case are we able to compile our own googlemobileads-unity.aar with Android Studio using your android sources (https://github.com/googleads/googleads-mobile-unity/tree/main/source/android-library) using any Java versions we want?

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.UnsupportedOperationException:This feature ...
java.lang.UnsupportedOperationException: This feature requires ASM7 at org.objectweb.asm.ClassVisitor.visitNestHost(ClassVisitor.java:150)
Read more >
java.lang.UnsupportedOperationException: This feature ...
java.lang.UnsupportedOperationException: This feature requires ASM7 at org.objectweb.asm.ClassVisitor.visitNestMember(ClassVisitor.java:243) ...
Read more >
Can't compile using 1.3.20-eap-25 and Java 11 - YouTrack
UnsupportedOperationException : This feature requires ASM7 at org.jetbrains.org.objectweb.asm.ClassVisitor.visitNestMember(ClassVisitor.java:236) at ...
Read more >
I NEED HELP ASAP : r/Unity3D
I can't seem to find any solution on forums. This "UnsupportedOperationException: This feature requires ASM7" looks like the main problem. I ...
Read more >
java.lang.UnsupportedOperationException: This feature ...
I have found when building for Android in Unity that I frequently come across the error “This feature requires ASM7”.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found