找到你要的答案

Q:SVNIgnore for Android Studio Projects

Q:Android Studio项目svnignore

I try to import my Android Studio project on different machines and wondering which project files are realy needed. For example the .idea or .gradle directories. I won't to much trash in my svn repo. Can someone tell my more about required files for Android Studio projects?

我尝试导入我的Android Studio项目在不同的机器上不知道哪些是真的需要项目文件。例如,思想或工具目录。我不会在我的svn多垃圾。有人可以告诉我更多关于Android工作室项目所需的文件吗?

answer1: 回答1:

You need to keep these files in your root project

  • app folder (tough ignore the build folder inside it recursively, it's a big waste of space)
  • gradle
  • .gitignore if you are using GIT
  • build.gradle
  • gradle.properties if you want to have the same configuration on all of your pc's. You need to cinfugure it first tough.
  • gradlew
  • gradlew.bat
  • settings.gradle

Anything else that is not on the list and was not created by you, can be ignored

Make sure you ignore these by file name wildcard. This is the garbage created by macs and windows machines.

  • .DS_Store
  • desktop.ini
  • Thumbs.db
  • *.iml (garbage created by Android studio)

您需要将这些文件保存在根项目中

  • app folder (tough ignore the build folder inside it recursively, it's a big waste of space)
  • gradle
  • .gitignore if you are using GIT
  • build.gradle
  • gradle.properties if you want to have the same configuration on all of your pc's. You need to cinfugure it first tough.
  • gradlew
  • gradlew.bat
  • settings.gradle

任何其他不在列表中而不是由你创建的,都可以忽略

确保你忽略这些文件名通配符。这是由Mac和Windows机器产生的垃圾。

  • .DS_Store
  • desktop.ini
  • Thumbs.db
  • *.iml (garbage created by Android studio)
answer2: 回答2:

I truely recomend you to use git in Android Studio, the integration is awesome and it`s so easy to use. It select the files u need for you and have really good tools for merge files.

我真的建议你在Android Studio使用Git,一体化是可怕的,它很容易使用`。它为你选择需要的文件,并且有很好的合并文件的工具。

android  svn  android-studio  svnignore