1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Android Studio Strange Error?!

Discussion in 'Plugins and Coding' started by olsyboy, Jul 15, 2015.

  1. olsyboy

    olsyboy Member

    Joined:
    Jun 13, 2015
    Messages:
    215
    Likes Received:
    56
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    Student
    I have been compiling my apps fine until today..
    This error happened:

    • FAILURE: Build failed with an exception.
    • * What went wrong:
    • Build file 'C:AndroidStudioProjects\Project\uild' does not exist.
    • * Try:
    • Run with --stacktrace option to get the stack trace. Run with --info or --debug opt
    • ion to get more log output.
    • BUILD FAILED
    This is after gradlew -build

    What do I do?
    Thanks :)
     
  2. allstarninja

    allstarninja Member

    Joined:
    Apr 17, 2014
    Messages:
    504
    Likes Received:
    276
    Trophy Points:
    63
    Gender:
    Male
    Home Page:
    I do not know much about Android Studio. But hey, it's quite obvious that you are missing a file. It could be because you are pointing to a non-existing directory ('C:AndroidStudioProjects\Project\uild' instead of 'C:\AndroidStudioProjects\Project\uild'). I don't have much more advice to give,

    So, Good luck.
     
  3. olsyboy

    olsyboy Member

    Joined:
    Jun 13, 2015
    Messages:
    215
    Likes Received:
    56
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    Student
    @allstarninja I have no idea what should be in this folder lol
     
  4. alyphen

    alyphen Member

    Joined:
    Jan 4, 2014
    Messages:
    101
    Likes Received:
    99
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    Freelance software developer
    Location:
    127.0.0.1
    Home Page:
    Often, errors like this can be prevented by just doing what it wants - create an empty folder and see if it still complains. If it does, you may get a different error which you can debug.
     
  5. not2excel

    not2excel Member

    Joined:
    Jun 24, 2015
    Messages:
    35
    Likes Received:
    28
    Trophy Points:
    18
    pastebin the gradle script then. I'm assuming you modified it, since the default build script provided usually works just fine
     
  6. LegitModern

    LegitModern Member

    Joined:
    Aug 17, 2015
    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    I assume your question was already answered. But, if you're still having problems, try running this command in the console:
    android update project -p /path/to/project

    If the build files don't exist, it should automatically create them or update them. If it still doesn't work, try getting a full stack trace (gradlew -build --stacktrace).
     
    olsyboy likes this.
  7. PartyBlaze

    PartyBlaze Member

    Joined:
    Nov 27, 2014
    Messages:
    1,192
    Likes Received:
    1,323
    Trophy Points:
    113
    Location:
    Europe
    Doesn't Android Studio expect 'uild' to be 'build'? I've had that problem before.
     
  8. Samuel Requena

    Samuel Requena Member

    Joined:
    Nov 2, 2015
    Messages:
    89
    Likes Received:
    7
    Trophy Points:
    8
    Gender:
    Male
    Occupation:
    Study hard, get high.
    Location:
    Just behind you.
    Rename "C:AndroidStudioProjects\Project\uild" to "C:AndroidStudioProjects\Project\build" that should work, if not, post your exception stack trace so we can see it.