Search code examples
androidgitandroid-studiogitignore

Should I .gitignore Application/build/ folder in AndroidStudio?


I know that I have to .gitignore the /build folder in project root. But there is also Application/build/ folder. Do i need to track it?

Update: I see there is another similar question but more general. But I don't see anyone there talking about issue like I have. It looks like if you put slash at the end it makes the difference: build/

And it looks like nobody talks there about Application/build folder. This must be new project structure because some people use /builder and it works for them. That's because they don't have Application/builder folder. I think.


Solution

  • A typical AndroidStudio gitignore file does include the gitignore rule

    build/
    

    That would ignore any build folder, recursively from the top folder of the repository.
    Including Application/build.