Unity Gradle Error, While Export ANDROID 12 or API Level 31. [SOLVED!!!] by Hossen Mohammad Khan

preview_player
Показать описание


Unity Android build with api level 31 is failed with gradle error shown. can't build unity game selecting android 12.

How to solve unity API level 31 build error without android studio?

Build for Android 12 with Unity.

Build to Target API Level 31 or above in ANY version of Unity.

Gradle build failed Unity.

[ANDROID] BUILD FAILS WHEN TARGETING AN API LEVEL 31 AND USING CUSTOM MAIN/LAUNCH GRADLE TEMPLATES UNITY

Unity2019 Build Failed when set Target API 31.

Resolving Android Gradle Build Errors

Can't build with Android API 31 Unity

ANDROID BUILD FAILS WHEN TARGETING SDK 31 AND USING BUILD-TOOLS 31.0.0 Unity.

When building an Android project that targets Android 12 (SDK level 31), you may encounter the following error:
Рекомендации по теме
Комментарии
Автор

Android 13 or API 33 help to solve the issue

GameOnBudget
Автор

Thanks you, but for me it's don't working! But i found a very simple solution : delete all plugins files in the folder : And NOW THE BUILD WITH GRADLE IT'S WORKING!!

spgames
Автор

Which is the last unity version that had internal android build system.

mihaithemystic
Автор

Spent a whole day to fix this issue, luckily i found this one and it is worked.

kartheek_teja
Автор

I have tried many things..100 solutions on internet, YouTube, other sources..but still didn't work for me 😢😢😢 *can anyone help please* 😭😭

mgtopics
Автор

You're a legend. You are the only one who covered this topic on youtube. But my issue is still not fixed.
CommandInvokationFailure: Gradle build failed.
D:\Unity3D\Engine\Unity -classpath "D:\Unity3D\Engine\Unity "assembleRelease"

lalitsharma
Автор

Hello, I have followed all your steps and it does not compile, I have several scenes and it keeps compiling in scene 0. I have been trying to solve this problem for a long time, can you help me? Thank you.

fumeque
Автор

What is the version of NDK you are use ?

suegamestudio
Автор

Thank you very much, that helps me a lot. In combination with this video (Build to Target API Level 31 or above in ANY version of Unity (July 2022))

sightblue
Автор

thank you. I am going to publish a game right now using this method, I will comment here the result.

GeniusK
Автор

Did you just gave ur comment a heart? I want one too :)

dedsec
Автор

Thank you so much! It works for me!!!! :D

christianskwisgaar
Автор

after everything step by step...gradle build error. i feel like you guys dont really understand this issue. every body just has a different shit thats working for them. then they come here to post and add "fixed" like they know what they doing

micol
Автор

I did not follow you because my Gradle had already done for me, now it's not working :(
Editor :- 2022.3.4f1
Gradle version :- 7.2

samarth
Автор

Hello, how to solve target A0I level 33?

Cjmovie
Автор

I know how to do this, this is the easy part. I have plugins with with the intent filter too in different manifests ive tried to change them all manually but I still keep getting this dam error its driving me nuts!

paranormalgamesstudios
Автор

nothing I did could fix the problem, I had unity hub installed on my f drive. I uninstalled all of my unity versions and unity then reinstalled unity hub on my c drive. it may have been overkill but frustration led me to it and then all my android building worked.

kpm
Автор

Thank you so much really appreciate this.

sahildhingra
Автор

Bro please..., tell me it's will be working

techgemerz
Автор

Exception: Gradle install not valid
(System.String gradleLauncherPath, System.Int32 jvmHeapSize) (at
() (at
(System.String stagingArea) (at
args, buildProgramOutput) (at
args, UnityEditor.BuildProperties& outProperties) (at
(UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, usedClassRegistry, report) (at
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

MeetSondagar-pg