V
V
Vasily Vorobyov2015-09-10 08:42:51
Android
Vasily Vorobyov, 2015-09-10 08:42:51

What should be added to gitignore in android project?

Here is the root directory of my project. Which of these should not be in the repository and why? With what minimum of files can I clone the project and run the project on the emulator after gradle sync? Thanks in advance.
.gradle
app
build/intermediates
gradle/wrapper
MyProject.iml
android-app.iml
build.gradle
gradle.properties
gradlew
gradlew.bat
local.properties
settings.gradle

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Berkov, 2015-09-10
@konstantin_berkow

Firstly, running on an emulator / device does not depend on the git, the project is either built or built incorrectly, or not built at all. Secondly, Android Studio itself does a good job of gitignor. Thirdly, the question has a solution on the web ( stackoverflow ). Fourth, I prefer to:
.gradle
/local.properties
/.idea/workspace.xml (replace this and the next with .idea)
/.idea/libraries
.DS_Store
/build
Add these lines:
gradle.properties
.idea
. navigation
/captures
*.iml
gradlew
gradlew.bat

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question