Fix Gradle Build Error Unity Version 2022 And 2021

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • In This video, I will show you How to fix the Gradle Build Error in unity
    if it didn't fix your problem See my other video about Gradle Build Error: • Gradle build failed. S...
    --------------------------------------------------------------------------------
    ✅Avoid Using Tags in Unity! - Optimization:
    • Avoid Using Tags in Un...
    ✅THIS is the best way to Get Component:
    • THIS is the best way t...
    ✅Car | Honda E - Unity Engine - Cinematic:
    • Car | Honda E - Unity ...
    ✅Wet Surface In Unity - Shader Graph - Tutorial:
    • Wet Surface In Unity -...
    ✅Glow Emission Filling effect | Shader Graph | UNITY:
    • Glow Emission Filling ...
    ✅Raycast Reflections 2D | Laser | Unity: 2022:
    • Raycast Reflections 2D...
    --------------------------------------------------------------------------------
    Socials and Other Stuff:
    • Subscribe - / @gamedevbox
    • GooglePlay - play.google.co....
    • Itch.io - reversegravity...
    If you have any questions post them in the comments and I'll do my best to answer them 🙌
    #tutorial #gamedesign #unitydevelopment

Комментарии • 54

  • @GameDevBox
    @GameDevBox  7 месяцев назад

    🟨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): ruclips.net/video/6PY69xSqHKU/видео.html

  • @gustavosalmeron2013
    @gustavosalmeron2013 6 месяцев назад +25

    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  6 месяцев назад +1

      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 5 месяцев назад

      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 5 месяцев назад

      Best solution. It worked!

    • @vitchi
      @vitchi 5 месяцев назад

      @@skatingsnake208 Once you opened the Player settings and selected the Android tab -> "Other Settings" under Identification

    • @KnightRei
      @KnightRei 5 месяцев назад +2

      Thank u For this, i have been dying the past 3 hours looking for solutions!!!!!! Godbless!!

  • @y01cu_yt
    @y01cu_yt 9 месяцев назад +5

    This steps wasn't helpful with my problem but thanks for sharing them anyways 👍.

    • @GameDevBox
      @GameDevBox  8 месяцев назад

      Your welcome sorry if it couldn't fix your problem 💛

    • @rakeshkryadav5888
      @rakeshkryadav5888 7 месяцев назад

      I am wokring on Unity v2021.3.26f1, and I never encountered any gradle error. Maybe this can fix.

    • @TomasHornych
      @TomasHornych 7 месяцев назад

      @@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..

  • @skynetdeveloper2698
    @skynetdeveloper2698 4 дня назад

    اقا دم شما گرم

  • @brightbigbio
    @brightbigbio 4 месяца назад +4

    Sometimes it's just that my Google Chrome is open

  • @Sohneg
    @Sohneg 6 месяцев назад +1

    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

  • @rzstudio.official
    @rzstudio.official 9 месяцев назад +3

    I have jdk, sdk, ndk and gradle from unity directly but why do I still get errors, Can you help me please

    • @GameDevBox
      @GameDevBox  9 месяцев назад +2

      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.

  • @unfunny_memes_
    @unfunny_memes_ 7 месяцев назад

    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  7 месяцев назад

      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) :ruclips.net/video/6PY69xSqHKU/видео.html

  • @big-kinoko
    @big-kinoko Месяц назад

    I got 30.0.2 folder name already, in source properties also 30.0.2, but still Gradle build fail.

    • @GameDevBox
      @GameDevBox  Месяц назад

      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: ruclips.net/video/6PY69xSqHKU/видео.html

  • @JM-ri6lp
    @JM-ri6lp Месяц назад

    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  Месяц назад

      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: ruclips.net/video/6PY69xSqHKU/видео.html

    • @JM-ri6lp
      @JM-ri6lp Месяц назад

      @@GameDevBox I fixed the problem using the API 32, keystore manager, and adding the Gradle. Thank you.

  • @ddshinchan
    @ddshinchan 10 месяцев назад +1

    Bro pls tell me 2022.3.13f1 gradle build failed because mentioned trick doesnt work

    • @GameDevBox
      @GameDevBox  10 месяцев назад

      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.

  • @RyanChinoda
    @RyanChinoda 7 дней назад

    Hey, I didn't find android player folder in Playback engines

    • @GameDevBox
      @GameDevBox  7 дней назад

      make sure to download the Android build from unity hub first

  • @scarf744
    @scarf744 Месяц назад

    issue is still there, infact it failed twice as fast

    • @GameDevBox
      @GameDevBox  Месяц назад

      Did you check if Installing SDK Manually would fix it? ruclips.net/video/6PY69xSqHKU/видео.html

  • @MohammedKkh-w3e
    @MohammedKkh-w3e 7 месяцев назад

    I get an error saying “gradle install is not valid” what should I do

    • @GameDevBox
      @GameDevBox  7 месяцев назад

      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) : ruclips.net/video/6PY69xSqHKU/видео.html

  • @jt9564
    @jt9564 2 месяца назад

    What programes did you open the source file in?

    • @7415_Gamer
      @7415_Gamer 21 день назад

      You can use wordpad

  • @YUSUF_TAHERI
    @YUSUF_TAHERI 7 месяцев назад

    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  7 месяцев назад

      Notepad++, text file or even Visual Studio every of these software should work

  • @Brai-niac
    @Brai-niac 8 месяцев назад

    macbook?

  • @igor-z42
    @igor-z42 6 месяцев назад

    Didn't help

    • @GameDevBox
      @GameDevBox  6 месяцев назад

      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): ruclips.net/video/6PY69xSqHKU/видео.html

  • @vitogusmano
    @vitogusmano 10 дней назад

    this solution is totally stupid

    • @GameDevBox
      @GameDevBox  9 дней назад

      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: ruclips.net/video/6PY69xSqHKU/видео.html
      I hope you can find the issue, have a great day :)

  • @MeetSondagar-p7g
    @MeetSondagar-p7g 7 месяцев назад

    2023?

    • @GameDevBox
      @GameDevBox  7 месяцев назад

      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) :ruclips.net/video/6PY69xSqHKU/видео.html

    • @MeetSondagar-p7g
      @MeetSondagar-p7g 7 месяцев назад

      Ok@@GameDevBox