Sharing projects on an Android studio on multiple computers

Using Android Studio to create an application that uses Google Play Services for maps, I have to include the google-play-services library, and also make sure that there are some .jar files and all this jazz. I get it just fine, however at work we use git for version control. If another machine pulls out the files for the specified application from git, and this computer has a different place for the necessary library, the user of this second machine must reconfigure the project to use these libraries of machines and when this user clicks it changes to git, the same should be done for the next user. This makes it difficult, as you might imagine, effective and efficient cooperation with several developers in one project. Is there a best practice guide to make this easier or settings or something that I am not familiar with?

+7
git android-studio collaboration
source share
1 answer

In general, you should not add files to a version control that may have local settings. You should also flag these files to be ignored in .gitignore so that other developers do not accidentally add them to version control.

In my current projects, I ignore the following files created by Android Studio:

 *.iml *.ipr *.iws .idea/ 

However, I do not have the same situation as yours, because right now I do not use any external libraries.

If for some reason it does not suit you, you can try one of these workarounds:

  • Add external libraries to version control. Usually I am against adding binary files to version control, but in this case this may be acceptable, especially if there are several such files.
  • Use symbolic links: library links are standardized in the project, and developers can either put libraries in a specified location or create symbolic links to point to their user locations.
+2
source share

All Articles