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:
- Created 10 months ago
- Reactions:4
- Comments:44 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Increasing min API Level to Android 7 (API 24) worked for me.