By default Android Studio puts the build
directory (both at the project level and the module level) in the .gitignore
.
This is typically the desired behavior, as there is no reason to keep most of the generated files in version control. Gradle will create these again for you on any machine you download the project to.
If you want to include the build directories, simple remove /build
from both the .gitignore
in your project's root and the .gitignore
in your module's root.
The libs
directory should not be in there by default, but if you are adding files to that directory and Git isn't recognizing the change, that's where I would look.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…