Search Unity

Bug Can't build for Android

Discussion in 'Android' started by iMobCoding, Jul 8, 2022.

  1. Zeeppo-Games

    Zeeppo-Games

    Joined:
    May 13, 2015
    Posts:
    103
    New version... I'm not sure if they've fixed it
    upload_2022-7-28_10-29-0.png
     
    kayt15 likes this.
  2. OscarLeif

    OscarLeif

    Joined:
    Jul 17, 2016
    Posts:
    69
    It seems that they fix the issue.
    They Fix the Issue with the Android Build.
    I still use 2021.3.5f1 Lts

    But it actually have more bugs than fixes. (LTS doesn't mean less bugs :( )
    For example this bugs probably affect a lot of players.
    Release Unity 2021.3.7f1:
    • uGUI: Broken mouse pointer input coordinates in GraphicRaycaster for certain window sizes in Build when run in windowed mode (UUM-7893)

    • uGUI: UI becomes not interactable after deactivating and reactivating Canvas (UUM-9258)

    • uGUI: UI Elements are no longer rendered when deactivating and reactivating the Parent GameObject (UUM-9248)
     
    IgorBoyko likes this.
  3. militarybeetle

    militarybeetle

    Joined:
    Mar 27, 2019
    Posts:
    10
    What luck! A fix on the very day I came across this.

    Downloading version 2021.3.8f fixed this for me, however running a development built makes me unable to play the game over USB as I had previously

    Could anyone confirm this is the case for them?

    Code (CSharp):
    1. Connection to Android device failed: Unable to reverse network traffic to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
    2. C:\Program Files\Unity\Hub\Editor\2021.3.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe -s "20080411" reverse "tcp:34998" "tcp:34999"
    3.  
    4. Environment Variables:
    5. OculusBase = C:\Program Files\Oculus\
    6. GPU_MAX_ALLOC_PERCENT = 100
    7. USERDOMAIN = DESKTOP-1TEBGSD
    8. ProgramFiles = C:\Program Files
    9. TMP = C:\Users\claud\AppData\Local\Temp
    10. BURST_ANDROID_MIN_API_LEVEL = 22
    11. PROCESSOR_ARCHITECTURE = AMD64
    12. PROCESSOR_REVISION = 9e0a
    13. OneDriveConsumer = C:\Users\claud\OneDrive
    14. OS = Windows_NT
    15. GPU_USE_SYNC_OBJECTS = 1
    16. PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
    17. ProgramW6432 = C:\Program Files
    18. CommonProgramFiles = C:\Program Files\Common Files
    19. USERPROFILE = C:\Users\claud
    20. JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2021.3.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    21. DokanLibrary1 = C:\Program Files\Dokan\DokanLibrary-1.4.0\
    22. DriverData = C:\Windows\System32\Drivers\DriverData
    23. ComSpec = C:\WINDOWS\system32\cmd.exe
    24. LOGONSERVER = \\DESKTOP-1TEBGSD
    25. PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    26. ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2021.3.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
    27. SystemRoot = C:\WINDOWS
    28. NUMBER_OF_PROCESSORS = 12
    29. JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
    30. Medit_CHITUBOX_Basic_Bridge = D:\Apps\CHITUBOX V1.9.2\CHITUBOX.exe
    31. FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
    32. HOMEDRIVE = C:
    33. TEMP = C:\Users\claud\AppData\Local\Temp
    34. Path = C:\Program Files\Oculus\Support\oculus-runtime;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\dotnet\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\PuTTY\;D:\Apps\Git\cmd;D:\Apps\Git LFS;C:\Users\claud\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\claud\AppData\Local\Programs\Python\Python37\;C:\Users\claud\AppData\Local\Microsoft\WindowsApps;C:\Users\claud\AppData\Local\Microsoft\WindowsApps;C:\Users\claud\.dotnet\tools;D:\Apps\Microsoft VS Code\bin;C:\Users\claud\AppData\Roaming\npm;C:\Users\claud\AppData\Roaming\npm;C:\Users\claud\AppData\Local\GitHubDesktop\bin
    35. USERNAME = claud
    36. COMPUTERNAME = DESKTOP-1TEBGSD
    37. PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    38. ALLUSERSPROFILE = C:\ProgramData
    39. SystemDrive = C:
    40. windir = C:\WINDOWS
    41. FPS_BROWSER_USER_PROFILE_STRING = Default
    42. HOMEPATH = \Users\claud
    43. PUBLIC = C:\Users\Public
    44. CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    45. APPDATA = C:\Users\claud\AppData\Roaming
    46. OneDrive = C:\Users\claud\OneDrive
    47. PROCESSOR_LEVEL = 6
    48. CommonProgramW6432 = C:\Program Files\Common Files
    49. ProgramFiles(x86) = C:\Program Files (x86)
    50. NVIDIAWHITELISTED = 0x01
    51. SESSIONNAME = Console
    52. GIT_LFS_PATH = D:\Apps\Git LFS
    53. GPU_FORCE_64BIT_PTR = 0
    54. LOCALAPPDATA = C:\Users\claud\AppData\Local
    55. GPU_MAX_HEAP_SIZE = 100
    56. SHIM_MCCOMPAT = 0x810000001
    57. USERDOMAIN_ROAMINGPROFILE = DESKTOP-1TEBGSD
    58. ProgramData = C:\ProgramData
    59. ORIGINAL_XDG_CURRENT_DESKTOP = undefined
    60.  
    61.  
    62. stderr[
    63. adb.exe: error: closed
    64. ]
    65. stdout[
    66.  
    67. ]
    68. exit code: 1
    69. UnityEditor.EditorApplication:Internal_InvokeTickEvents ()
     
  4. Matheuz

    Matheuz

    Joined:
    Aug 27, 2014
    Posts:
    30
    After 1 month and 13 days, someone picked my bug report. It took that long for someone to actually just pick it up. Their reply:

    As some people have said above, the issue has already been fixed.
     
  5. FernandoDarci

    FernandoDarci

    Joined:
    Jan 25, 2018
    Posts:
    19
    To me, this does the trick.
     
  6. Cuicui_Studios

    Cuicui_Studios

    Joined:
    May 3, 2014
    Posts:
    72
  7. ELMANDILI

    ELMANDILI

    Joined:
    Mar 24, 2022
    Posts:
    2
    did you find any solution bro ?
     
  8. ELMANDILI

    ELMANDILI

    Joined:
    Mar 24, 2022
    Posts:
    2
    Yes bro I faced the same issue
     
  9. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    197
    Same as you, I'll try upgrading my version
    edit: it didn't work unfortunately
     
    Last edited: Dec 12, 2022
  10. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    197
    If someone has a solution I'd love to try to fix that, I'm using UDP
     
  11. liamcoolcreatorgtag2014

    liamcoolcreatorgtag2014

    Joined:
    Dec 30, 2022
    Posts:
    2
    It keeps on saying “Complete with errors”. I just wanted to make a game called Monkey Rush VR for quest 2.
     
  12. armedeaglex

    armedeaglex

    Joined:
    Sep 20, 2022
    Posts:
    17
    You can export your android project in the build settings and build it now on android studio
     
  13. mmar58

    mmar58

    Joined:
    Nov 2, 2022
    Posts:
    1
    C:\Program Files\Unity\Editor\Data (on Windows) or /Applications/Unity (on Mac))
     
  14. Tech-Unity3d

    Tech-Unity3d

    Joined:
    Apr 25, 2016
    Posts:
    11
    Yes. I also test Unity3d version 2022.3.5. Same error.