Search Unity

Question Cant build dont get what the error means

Discussion in 'Editor & General Support' started by Herr_Kakashi, Aug 16, 2022.

  1. Herr_Kakashi

    Herr_Kakashi

    Joined:
    Apr 1, 2021
    Posts:
    1
    Hey i am currently creating a VR project for Quest 2 / Android and when i want to build i get this message:

    Unable to create unique temp directory for 'Temp/ADB-Refresh'. Source assets are not scanned.


    Anyone who knows what that means?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,752
    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/

    If it's not that, then here's how to troubleshoot:

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

    If it does NOT build, then go fix your Unity installation, or your other tools, such as Android SDK, NDK, JDK, etc.

    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 that subsystem.
     
    DevDunk likes this.