Search Unity

Bug [Windows] - build failed for android with gradle build issue

Discussion in 'Editor & General Support' started by Amaury_2912, Mar 29, 2023.

  1. Amaury_2912

    Amaury_2912

    Joined:
    Jun 14, 2022
    Posts:
    2
    I am kind of new to Unity, but I faced this issue while trying to build anything for Android. This project is empty (just a canvas, a button and a text) but I can't build it because of a 'gradle build failed'. In the console, the errors and warnings I saw were 'access denied' ; 'failed to download any source list'
    here are the entire console after I failed a build.
    upload_2023-3-29_8-14-50.png
    I already tried to reinstall unity. Does someone know what I can do to fix this ?
     
  2. TCYeh

    TCYeh

    Joined:
    Jul 25, 2022
    Posts:
    55
    Try accessing the folder containing the file that is showing an access denied error, and check its security settings by looking at its properties. Ensure that the folder is accessible to all users.
     
  3. Amaury_2912

    Amaury_2912

    Joined:
    Jun 14, 2022
    Posts:
    2
    Thank you! that worked for the 6 first errors!
    But I still have those errors (same that the last five I sent last time)
    upload_2023-3-29_12-25-15.png
    I also tried to do it in the file concerned by those errors but it didn't change anything.
    Someone have an idea ?