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.

This feature requires ASM7

See original GitHub issue

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2021.3.12f1
  • Google Mobile Ads Unity plugin version: 7.3.0
  • Platform: Unity Editor
  • Platform OS version: Android 12
  • Any specific devices issue occurs on: Windows 11
  • Mediation ad networks used, and their versions: N/A

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

When you try to build app without minification.

  • Disabled R8
  • Disabled Debug
  • Disabled Release

Build fails with

Caused by: java.lang.UnsupportedOperationException: This feature requires ASM7

If i enable R8 and Release and Debug, build works, ads works all fine.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:4
  • Comments:44 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
haru-sudocommented, Nov 17, 2022

Hello. I solved my problem this way. Download the latest Gradle version here. https://gradle.org/releases/

Place the unzipped Gradle file in the following location /Applications/Unity/Hub/Editor/2021.3.12f1/PlaybackEngines/AndroidPlayer/Tools/gradle/ Please note that 2021.3.12f1 is the editor version and should be replaced with your own environment.

Next, open Unity and change the Gradle to be used. From the top menu, select Unity > Preferences and open External Tools.

Uncheck the box marked “Gradle Installed with Unity (recommended)” and enter the path to the Gradle you just placed.

Now the Gradle used for building has been switched to a different version. If there are no problems with the version, you should now be able to build Android.

7reactions
elfadili-aecommented, Jan 18, 2023

Increasing min API Level to Android 7 (API 24) worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question - This feature requires ASM7
It usually occurs when you remove a package but new incremental build system didn't notice it. I solved it by use "Clean Build"...
Read more >
Android This feature requires ASM7 - java
Android This feature requires ASM7 Seems to be a bug on Android Studio that reportedly has been fixed as of Dolphin that relates...
Read more >
I NEED HELP ASAP : r/Unity3D
This "UnsupportedOperationException: This feature requires ASM7" looks like the main problem. I tried to build it on Android Studio too and ...
Read more >
problem when building games with GoogleAdsMob sdk " ...
... but during the gradel build I have an error: This feature requires ASM7, can you help me. Mobile Ads SDK Forum Advisor's...
Read more >
Can't compile using 1.3.20-eap-25 and Java 11 - YouTrack
Can't compile using 1.3.20-eap-25 and Java 11: "This feature requires ASM7" ; Priority, Critical C ; Type, Bug B ; Target versions, 1.3.20...
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