1

I have a developer who is using a Macbook and Eclipse, while I am on a windows computer using android studio. We are attempting to work on the same code using Github, however it seems that egit and android are quite different? Does anyone know how to work around this?

Seb
  • 47
  • 3
  • there is no automatic way(AFAIK) to import the eclipse project directly into Android Studio. I think one of you will have to shift to other's IDE. – DroidDev May 29 '14 at 06:04
  • thanks for the quick response. But hmmm yea i think thats what i figured. Thanks! – Seb May 29 '14 at 07:40

1 Answers1

0

You should switch to using the Gradle build system (see these instructions for migrating your build from Eclipse to Gradle) which can be built from the command line. You would then have Android Studio build the project using Gradle, and you would also use the Eclipse Plugin for Gradle to generate the Eclipse project from the Gradle configuration. In short, Gradle would be the canonical description (in your repository) for the project, and you would have both Eclipse and Android Studio use the Gradle configuration for building the project. You will probably also want to configure Git to ignore and exclude the Eclipse project generated by this configuration.

Michael Aaron Safyan
  • 93,612
  • 16
  • 138
  • 200
  • Thanks for the quick response Michael! So in theory if the project was uploaded and synced to github before switching to the Gradle system the only way an android studio developer would be able to work on it is if he installed and switched to eclipse? – Seb May 29 '14 at 07:30
  • Well, the Android Studio person could also use the Android SDK tools on the commandline, but yeah, it wouldn't be particularly pleasant. Best to convert to Gradle, submit the Gradle configuration, and remove the Eclipse configuration from the repository. – Michael Aaron Safyan May 29 '14 at 07:53
  • This is unlikely to work. I don't think the Eclipse plugin for Gradle understands Android-Gradle projects, which don't use normal Java sourcesets and are otherwise much more complex. – Scott Barta May 29 '14 at 16:22