How to set up a git repo that works on Windows and Linux in Android Studio (and using gradle)

JCraw

I want to work on code on my Windows machine and Mint machine.

The project is in Android Studio and is built using Gradle.

How much of the project should I check into the git repo? Do I commit the iml and gradle files? I see there is a local.properties that says it should not be committed.

mmBs

You should define and commit a proper .gitignore file for Android Studio (and in my opinion for IntelliJ/Eclipse too). The .gitignore tells you what kind of files you don't want git to track. This is one of many examples for Android projects:

# Eclipse
.project
.classpath
.settings
.checkstyle

# IntelliJ IDEA
.idea
*.iml
*.ipr
*.iws
classes
gen-external-apklibs

# Gradle
.gradle
build

# Maven
target
release.properties
pom.xml.*

# Ant
bin
gen
build.xml
ant.properties
local.properties
proguard.cfg
proguard-project.txt

# Other
.DS_Store
tmp

It is from this gist. In addition you should look on Google repo where iosched 2013 is. There is also a nice example of .gitignore (reference).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to set up a git repo that works on Windows and Linux in Android Studio (and using gradle)

From Java

How to set up gradle and android studio to do release build?

From Dev

How to clone git repo from Windows to Linux?

From Dev

How do I set up a git repo to be used by multiple users?

From Dev

Git problems - how to set up a NAS with a repo for a website

From Dev

Android studio - Gradle - GitHub Repo

From Dev

How to fasten up gradle in Android Studio?

From Java

How to set -source 1.7 in Android Studio and Gradle

From Dev

How to set up vpn so that it only works on custom urls in linux

From Dev

How to set up external documentation in Android Studio?

From Dev

how to set up the AVD for android studio

From Dev

How to set up webdav on Android Studio?

From Dev

How to find what git repo an Azure Function is set up to pull from?

From Dev

Android Studio using Git: gradle-wrapper.jar in version control

From Dev

How to reset repo using git?

From Dev

How to reset repo using git?

From Dev

Cannot build app when using gradle (Android Studio) and local maven repo

From Dev

Cannot build app when using gradle (Android Studio) and local maven repo

From Dev

Is there a tested walkthrough on how to set up android studio and Android SDK?

From Dev

How set up gradle on Mac

From Java

How can I set up an editor to work with Git on Windows?

From Dev

How can I set up gVim as my editor on Git for Windows?

From Dev

How to set up subgit to mirror an svn repo that looks like a Windows Explorer hierarchy?

From Dev

How to set up GUI remote control to Linux on Azure from Windows?

From Dev

android studio set up is not working

From Dev

How to change git repository using android studio

From Dev

Android Studio on Linux and Windows

From Java

How to set gradle home while importing existing project in Android studio

From Dev

How to set NDK_MODULE_PATH in Android Studio and/or gradle?

Related Related

  1. 1

    How to set up a git repo that works on Windows and Linux in Android Studio (and using gradle)

  2. 2

    How to set up gradle and android studio to do release build?

  3. 3

    How to clone git repo from Windows to Linux?

  4. 4

    How do I set up a git repo to be used by multiple users?

  5. 5

    Git problems - how to set up a NAS with a repo for a website

  6. 6

    Android studio - Gradle - GitHub Repo

  7. 7

    How to fasten up gradle in Android Studio?

  8. 8

    How to set -source 1.7 in Android Studio and Gradle

  9. 9

    How to set up vpn so that it only works on custom urls in linux

  10. 10

    How to set up external documentation in Android Studio?

  11. 11

    how to set up the AVD for android studio

  12. 12

    How to set up webdav on Android Studio?

  13. 13

    How to find what git repo an Azure Function is set up to pull from?

  14. 14

    Android Studio using Git: gradle-wrapper.jar in version control

  15. 15

    How to reset repo using git?

  16. 16

    How to reset repo using git?

  17. 17

    Cannot build app when using gradle (Android Studio) and local maven repo

  18. 18

    Cannot build app when using gradle (Android Studio) and local maven repo

  19. 19

    Is there a tested walkthrough on how to set up android studio and Android SDK?

  20. 20

    How set up gradle on Mac

  21. 21

    How can I set up an editor to work with Git on Windows?

  22. 22

    How can I set up gVim as my editor on Git for Windows?

  23. 23

    How to set up subgit to mirror an svn repo that looks like a Windows Explorer hierarchy?

  24. 24

    How to set up GUI remote control to Linux on Azure from Windows?

  25. 25

    android studio set up is not working

  26. 26

    How to change git repository using android studio

  27. 27

    Android Studio on Linux and Windows

  28. 28

    How to set gradle home while importing existing project in Android studio

  29. 29

    How to set NDK_MODULE_PATH in Android Studio and/or gradle?

HotTag

Archive