Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Bug Android SDK Build-tools component is not found [SOLVED]

Discussion in 'Editor & General Support' started by DylanChillin21, May 26, 2023.

  1. DylanChillin21

    DylanChillin21

    Joined:
    Apr 12, 2022
    Posts:
    5
    I reinstalled the unity version I have, and unity hub with the android build support and everything in it so please help. upload_2023-5-26_12-8-25.png also sdkmanager wont open I already tried that.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,936
    How to troubleshoot build failures:

    First, make a blank project with a single blank scene and prove that it builds successfully.

    If the blank project does NOT build, go fix your Unity installation or your other tools, such as Android SDK, NDK, JDK, etc. It may even be necessary to change to a different version of Unity3D. It is generally best to stay with LTS versions of Unity3D.

    Until you can build a blank project to the target platform, don't fiddle with anything else.

    Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

    Most often things that prevent building are third-party libraries such as Firebase.

    Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

    It may also be helpful to work through a tutorial or two for whatever subsystem is making the build fail.

    Android build not building:

    Recently (circa July 2022) there have been reports of Unity's installer failing to install the Android Tools.

    https://forum.unity.com/threads/cant-build-for-android.1306098/

    Here was how I brought up Unity2020.3.41 and the Android SDK 31 on October 30, 2022:

    https://forum.unity.com/threads/aab...y-2021-3-8-with-jdk-1-8.1322211/#post-8551193

    Android Gradle errors and other related stuff:

    https://forum.unity.com/threads/unity-gradle-bug-please-help.1368018/#post-8625789
     
  3. DylanChillin21

    DylanChillin21

    Joined:
    Apr 12, 2022
    Posts:
    5
    the blank project wouldn't build and the other stuff didnt work. Should I try to switch my project to an LTS version?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,936
  5. DylanChillin21

    DylanChillin21

    Joined:
    Apr 12, 2022
    Posts:
    5
  6. DylanChillin21

    DylanChillin21

    Joined:
    Apr 12, 2022
    Posts:
    5
    Wait im already on LTS so what do I do now?