java.lang.UnsupportedOperationException:This feature requires ASM

8875212--1212117--upload_2023-3-14_17-26-7.png
use minimum api level 22 or above for admob 7.3.1 or later

1 Like

lol, I am guessing, the team responsible for handling this issue doesn’t exist anymore!

SOLVED

2 Likes

I was able to solve the export problem, but now that I installed the APK on my cell phone, the game stops as soon as it starts.
Does anyone know what could be happening?

@Mikhael_stardust use debugging on mac for android build. see here

This worked for me as well, Much thanks to the author of this solution @Unity3D_FerozAhamed

Delete folder <PROJECT_FOLDER>\Library\Bee\Android , Android Resolver > Force Resolve

1 Like

Thanks! This solution helped

2 Likes

Its work

Set it to at min API level 24 or higher.

If it still happens, inside gradleTemplate.properties
android.useAndroidX=true
android.enableDexingArtifactTransform=false
Check if it is set.

If you do useAndroidX=true , the ASM7 library is included, and here android.enableDexingArtifactTransform=false seems to conflict with that option.

If you delete android.enableDexingArtifactTransform=false, it will build normally.
android.enableDexingArtifactTransform=false is sometimes included in the ads sdk.

7 Likes

[quote=“Miryum, post:8, topic: 903995, username:Miryum”]
I increased the min API Level to Android 7.0 and worked for me. And make sure Android dependencies are resolved.
[/quote] This worked for me tysm

Deleting the <PROJECT_FOLDER>\Library\Bee\Android did the trick for me
Thank you !

1 Like

This worked for me. Thank a ton

1 Like

Just these two steps solved my problem <PROJECT_FOLDER>\Library\Bee\Android and next: Android > Force Resolve, the unity team should have people like you on the team, thanks!.

1 Like

I have just increase the minimum API level to 8.0 and it works for me and then APK exported successfully.

I have not deleted any other folder.

1 Like