🟨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
@gustavosalmeron20139 ай бұрын
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...
@GameDevBox9 ай бұрын
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.
@skatingsnake2088 ай бұрын
Where is the API Level? im on Player but i cant see the API Level to change it (im on 2022.3.20f1 too)
@EngiNerdChannel8 ай бұрын
Best solution. It worked!
@vitchi8 ай бұрын
@@skatingsnake208 Once you opened the Player settings and selected the Android tab -> "Other Settings" under Identification
@KnightRei7 ай бұрын
Thank u For this, i have been dying the past 3 hours looking for solutions!!!!!! Godbless!!
@Sohneg9 ай бұрын
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_yt11 ай бұрын
This steps wasn't helpful with my problem but thanks for sharing them anyways 👍.
@GameDevBox11 ай бұрын
Your welcome sorry if it couldn't fix your problem 💛
@rakeshkryadav588810 ай бұрын
I am wokring on Unity v2021.3.26f1, and I never encountered any gradle error. Maybe this can fix.
@TomasHornych10 ай бұрын
@@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_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?
@GameDevBox10 ай бұрын
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.official11 ай бұрын
I have jdk, sdk, ndk and gradle from unity directly but why do I still get errors, Can you help me please
@GameDevBox11 ай бұрын
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.
@spgames964824 күн бұрын
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"
@GameDevBox24 күн бұрын
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-ri6lp3 ай бұрын
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.
@GameDevBox3 ай бұрын
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-ri6lp3 ай бұрын
@@GameDevBox I fixed the problem using the API 32, keystore manager, and adding the Gradle. Thank you.
@big-kinoko3 ай бұрын
I got 30.0.2 folder name already, in source properties also 30.0.2, but still Gradle build fail.
@GameDevBox3 ай бұрын
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 Жыл бұрын
Bro pls tell me 2022.3.13f1 gradle build failed because mentioned trick doesnt work
@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_Main7 ай бұрын
Sometimes it's just that my Google Chrome is open
@collinossman8046Ай бұрын
is this serious or a joke? I always have a web browser open but didn't know it could effect this
@Gelzo_MainАй бұрын
@@collinossman8046 it seems to work when I close my browser or it just be coincidence coz I only have 4 gig ram
@RyanChinoda2 ай бұрын
Hey, I didn't find android player folder in Playback engines
@GameDevBox2 ай бұрын
make sure to download the Android build from unity hub first
@MohammedKkh-w3e10 ай бұрын
I get an error saying “gradle install is not valid” what should I do
@GameDevBox10 ай бұрын
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_TAHERI9 ай бұрын
i have a problem with opening of the source properties file just say name of the app you used for open the file
@GameDevBox9 ай бұрын
Notepad++, text file or even Visual Studio every of these software should work
@jt95645 ай бұрын
What programes did you open the source file in?
@7415_Gamer3 ай бұрын
You can use wordpad
@skynetdeveloper26982 ай бұрын
اقا دم شما گرم
@scarf7444 ай бұрын
issue is still there, infact it failed twice as fast
@GameDevBox4 ай бұрын
Did you check if Installing SDK Manually would fix it? kzbin.info/www/bejne/bIG8Z2yuiNZ7gbc
@Brai-niac10 ай бұрын
macbook?
@igor-z428 ай бұрын
Didn't help
@GameDevBox8 ай бұрын
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-p7g10 ай бұрын
2023?
@GameDevBox10 ай бұрын
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-p7g10 ай бұрын
Ok@@GameDevBox
@vitogusmano2 ай бұрын
this solution is totally stupid
@GameDevBox2 ай бұрын
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 :)