What should be in my .gitignore for an Android Studio project?

后端 未结 30 3902
星月不相逢
星月不相逢 2020-11-22 04:23

What files should be in my .gitignore for an Android Studio project?

I\'ve seen several examples that all include .iml but IntelliJ docs sa

30条回答
  •  感动是毒
    2020-11-22 05:08

    To get a better idea, all you need are the following files

    • app
    • build.gradle
    • settings.gradle

    You could put everything else in the .gitignore file. All your app changes lies mostly in these files and folders. The rest you see in a basic project are gradle build files or Android Studio configuration files.

    If you are using Android Studio, you can use "Import project" to successfully build the project. Alternatively you can build using command line, follow Building Android Projects with Gradle.

提交回复
热议问题