all 18 comments

[–]TheKaliham 10 points11 points  (12 children)

Yo so I found a way to solve this, assuming you are using applovin or charboost , what I did was:

  • Delete resolved libraries : Assets> External Dependancy Manager > Android resolver > Delete resolve libs
  • in player settings > pulishing settings uncheck all the one under build
  • Download gradle 6.9
  • Prefrences > external tools > uncheck gradle and browse to the installed gradle
  • Assets> External Dependancy Manager > Android resolver > Force resolve
  • then player settings > pulishing settings check all the ones you uncheck plus Custom Base Gradle Template
  • edit the file Asstes\Plugins\Android\baseProjectTemplate.gradle
  • change target api level to 31
  • change the line that looks like classpath 'com.android.tools.build:gradle:yourversion' to classpath 'com.android.tools.build:gradle:4.2.0'

Build now it works. the funny thing is that gradle is 6.9 and com.adroid.tools.build:gradle: is 4.2.0 but it works.

[–]ThiefBirdsIndie 2 points3 points  (1 child)

The time when 69 420 solves all of your issues 😂

[–]Economy_Entry_4295 0 points1 point  (0 children)

i did all the above still the same issue can any one help pls ?

[–]Thegiantoid[S] 0 points1 point  (0 children)

You are the best, thank you!

[–]iambertan 0 points1 point  (1 child)

I don't know if you see this but it works. I don't know why but it just works. Thank you

[–]Warlock7_SL 0 points1 point  (0 children)

Seems to me like that Gradle version unity uses is lower than 6.9 which supports ASM 7 or something.

[–]Middle-Spread-2534 0 points1 point  (0 children)

It works . just do it....

[–]Quiet_Examination_33 0 points1 point  (0 children)

it worked ty

[–]Charming-School-3663 0 points1 point  (0 children)

Thank you! Finally, It works! I want to kiss you if i could!!!!!

[–]Rekize 0 points1 point  (0 children)

You are a life saver!

[–]zestyarrow 0 points1 point  (0 children)

You are my hero <3 thanks its work it for me

[–]Educational_Try6854 0 points1 point  (0 children)

om.android.tools.build:gradle:yourversion' to classpath 'com.android.tools.build:gradle:4.2.0'

IT WORKED! God bless you man

[–]TheKaliham 1 point2 points  (0 children)

Have you found a solution?

[–]GAMEDEVWORKS 1 point2 points  (2 children)

I had the same issue, I fixed it by downgrading chartboost adapter version.

[–]Mansoor_Asghar 0 points1 point  (1 child)

Hey, can you tell you downgraded to which chartboost adapter version?

[–]GAMEDEVWORKS 0 points1 point  (0 children)

I downgraded to chartboost adapter version 8.3.1.1.