Fix Gradle Build Error Unity Version 2022 And 2021

  Рет қаралды 30,672

Game Dev Box

Game Dev Box

Күн бұрын

Пікірлер: 60
@GameDevBox
@GameDevBox 9 ай бұрын
🟨if this approach doesn't work, the best way is to install SDK manually. Watch this video this error should be fixed: ➡Set up Android SDK Manually for Unity - (Fix Gradle Error): kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@gustavosalmeron2013
@gustavosalmeron2013 9 ай бұрын
If you are struggling with this nightmarish error, try this. Worked for me(2022.3.20f1) 1.Change your API level in Edit->Project Settings->Player to the latest(mine was API Level 36). When you try now to generate a build, Unity updates its Android SDK automatically. Enjoy. thumbs up if this helped. Don't try fucking around with manual changes in the editor's Android SDK folder...
@GameDevBox
@GameDevBox 9 ай бұрын
Thanks for the tips! Sometimes like when you want to publish the game in Google Play, you have to use the latest SDK version which is not the default Unity SDK and you must download the SDK and implement it.
@skatingsnake208
@skatingsnake208 8 ай бұрын
Where is the API Level? im on Player but i cant see the API Level to change it (im on 2022.3.20f1 too)
@EngiNerdChannel
@EngiNerdChannel 8 ай бұрын
Best solution. It worked!
@vitchi
@vitchi 8 ай бұрын
@@skatingsnake208 Once you opened the Player settings and selected the Android tab -> "Other Settings" under Identification
@KnightRei
@KnightRei 7 ай бұрын
Thank u For this, i have been dying the past 3 hours looking for solutions!!!!!! Godbless!!
@Sohneg
@Sohneg 9 ай бұрын
What helped me was changing the min and max target level to the newest one (not highest installed) so it updated automatically. then changed it back
@y01cu_yt
@y01cu_yt 11 ай бұрын
This steps wasn't helpful with my problem but thanks for sharing them anyways 👍.
@GameDevBox
@GameDevBox 11 ай бұрын
Your welcome sorry if it couldn't fix your problem 💛
@rakeshkryadav5888
@rakeshkryadav5888 10 ай бұрын
I am wokring on Unity v2021.3.26f1, and I never encountered any gradle error. Maybe this can fix.
@TomasHornych
@TomasHornych 10 ай бұрын
@@rakeshkryadav5888 I am a beginner in Unity, but I have quite a lot of experience with developing applications in c# for Win. I was very disappointed by the Unity. I don't understand why it is not possible to compile a clean project with default settings into a functional apk installation.. I have the same problem and probably others..
@unfunny_memes_
@unfunny_memes_ 10 ай бұрын
I built my project a few days ago and it worked fine. I did nothing to my project but this error showed up. Any ideas why it happened?
@GameDevBox
@GameDevBox 10 ай бұрын
I'm not sure what's causing this error and after several years I still don't know why. But if this approach doesn't work, the best way is to install SDK manually. Watch this video this error should be fixed: ➡Set up Android SDK Manually for Unity - (Fix Gradle Error) :kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@rzstudio.official
@rzstudio.official 11 ай бұрын
I have jdk, sdk, ndk and gradle from unity directly but why do I still get errors, Can you help me please
@GameDevBox
@GameDevBox 11 ай бұрын
if this approach is not working I suggest you download the SDK from Android Studio and place the SDK exactly in the unity folder (The path is in the video). I will do a tutorial (Downloading Android Studio SDK) for next week but you don't need to wait you can find good examples on the internet.
@spgames9648
@spgames9648 24 күн бұрын
It's dont work for me! Help me please! I have cutted and pasted the folder "30.0.2" in the desktop and cutted and pasted it in the original folder of "Unity" and I have the same "Gradle error" during my "build"
@GameDevBox
@GameDevBox 24 күн бұрын
did you try to restart hub or pc after that? I actually don't know this is the only way when I have gradle error if I try it would fix mine, try with different unity version, with different names and numbers. I wanted to suggest to watch setup the Android SDK manually but I think you watched that one. Thanks!
@JM-ri6lp
@JM-ri6lp 3 ай бұрын
I did what is shown in the tutorial, which shows 32.0, but in Unity, the highest API level appears to be 33.0. In other words, I would have to use up to API level 32.0 so that the Gradle build problem does not appear. Please confirm this for me.
@GameDevBox
@GameDevBox 3 ай бұрын
no for me the problem was fixed only by changing names, changing it to 32, and then again going 33 / 33.01. just go play with the name to see what would happen. if it didn't work I suggest setting up Android SDK Manually: kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@JM-ri6lp
@JM-ri6lp 3 ай бұрын
@@GameDevBox I fixed the problem using the API 32, keystore manager, and adding the Gradle. Thank you.
@big-kinoko
@big-kinoko 3 ай бұрын
I got 30.0.2 folder name already, in source properties also 30.0.2, but still Gradle build fail.
@GameDevBox
@GameDevBox 3 ай бұрын
Change it to something else and close the unity editor and unity hub and test it again, if it didn't worked go and revert it and do the testing again. if it didn't worked I suggest you install the SDK Manually: kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@ddshinchan
@ddshinchan Жыл бұрын
Bro pls tell me 2022.3.13f1 gradle build failed because mentioned trick doesnt work
@GameDevBox
@GameDevBox Жыл бұрын
make sure after changing the specific name Close Unity and Unity Hub and try to open it again, if still is not working the best idea is to download the Android studio go to the SDK panels download one of them then insert the Downloaded Folder to Unity location that show in the video and delete the current one. I hope it was helpful.
@Gelzo_Main
@Gelzo_Main 7 ай бұрын
Sometimes it's just that my Google Chrome is open
@collinossman8046
@collinossman8046 Ай бұрын
is this serious or a joke? I always have a web browser open but didn't know it could effect this
@Gelzo_Main
@Gelzo_Main Ай бұрын
@@collinossman8046 it seems to work when I close my browser or it just be coincidence coz I only have 4 gig ram
@RyanChinoda
@RyanChinoda 2 ай бұрын
Hey, I didn't find android player folder in Playback engines
@GameDevBox
@GameDevBox 2 ай бұрын
make sure to download the Android build from unity hub first
@MohammedKkh-w3e
@MohammedKkh-w3e 10 ай бұрын
I get an error saying “gradle install is not valid” what should I do
@GameDevBox
@GameDevBox 10 ай бұрын
The Absolute way that I'm sure it's going to work is installing SDK manually. Watch this video this error should gone: ➡Set up Android SDK Manually for Unity - (Fix Gradle Error) : kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@YUSUF_TAHERI
@YUSUF_TAHERI 9 ай бұрын
i have a problem with opening of the source properties file just say name of the app you used for open the file
@GameDevBox
@GameDevBox 9 ай бұрын
Notepad++, text file or even Visual Studio every of these software should work
@jt9564
@jt9564 5 ай бұрын
What programes did you open the source file in?
@7415_Gamer
@7415_Gamer 3 ай бұрын
You can use wordpad
@skynetdeveloper2698
@skynetdeveloper2698 2 ай бұрын
اقا دم شما گرم
@scarf744
@scarf744 4 ай бұрын
issue is still there, infact it failed twice as fast
@GameDevBox
@GameDevBox 4 ай бұрын
Did you check if Installing SDK Manually would fix it? kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@Brai-niac
@Brai-niac 10 ай бұрын
macbook?
@igor-z42
@igor-z42 8 ай бұрын
Didn't help
@GameDevBox
@GameDevBox 8 ай бұрын
did you try installing SDK manually? this is the best way to fix the gradle error but needs to download the SDK from the Android SDK Set up Android SDK Manually for Unity - (Fix Gradle Error): kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@MeetSondagar-p7g
@MeetSondagar-p7g 10 ай бұрын
2023?
@GameDevBox
@GameDevBox 10 ай бұрын
it should work fine even in unity 2023 but if it didn't watch this one: Set up Android SDK Manually for Unity - (Fix Gradle Error) :kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@MeetSondagar-p7g
@MeetSondagar-p7g 10 ай бұрын
Ok@@GameDevBox
@vitogusmano
@vitogusmano 2 ай бұрын
this solution is totally stupid
@GameDevBox
@GameDevBox 2 ай бұрын
I know the solution is silly, but it worked for me in all Unity versions, and it still works fine every time I go on this path. It might be because something else is not working for you. try installing the Android SDK Manually, if you need help I have a video about it: kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc I hope you can find the issue, have a great day :)
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 6 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 44 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 44 МЛН
This tiny computer changes EVERYTHING
15:57
Jeff Geerling
Рет қаралды 735 М.
Fix Firebase error on Unity 2022
17:21
DatPT Dev
Рет қаралды 357
Set up Android SDK Manually for Unity - (Fix Gradle Error)
3:16
Game Dev Box
Рет қаралды 15 М.
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 442 М.
XR Device Simulator 2.3.0 And Later
22:05
XR Terra Class
Рет қаралды 2,4 М.
Is the Ghostty terminal worth the hype?
15:21
typecraft
Рет қаралды 120 М.
Unity 6 Is Here : Amazing New Features and Free Assets!
12:21
Fist Full of Shrimp
Рет қаралды 25 М.
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 2,1 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 6 МЛН