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 while plugin version 7.2.0 was compiled with Java 7
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:
- Created 7 months ago
- Comments:12 (2 by maintainers)
Top GitHub Comments
Thank everyone,
The Gradle versioning can be super difficult. Thank your trouble shooting this.
@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?