How do I setup my Git repositories for Android development in Eclipse?
|March 24, 2011||Posted by forumadmin under TechQns||
I need some help with properly versioning my Android project with Git/Eclipse.
I have no problem setting this up with a single Android project.
However, I am trying to figure out the proper and correct way to set this up, if I add one or more third party Android libraries to my main project (e.g. Facebook SDK).
So currently I am using
git-submodules to accomplish this, and here’s my directory structure:
/project/android-main.git +--- /project/android-main/facebook-sdk
facebook-sdk as a git-submodule within my
In Eclipse workspace’s
android-main project, I am seeing the subfolder ‘
Then here comes the kludge:
I have to import ‘Existing project’ from
/project/android-main/facebook-sdk as a new project, so that I can reference this project as a library from my
In the end, Eclipse workspace has three references to ‘
- The project itself in the workspace.
- because I added it as a
git-submodule, it showed up as a folder in
- Another folder ‘
facebook_sdk_src‘ is created by the Android SDK plugin in
This seems to clutter the workspace and the main project, if I add more submodules.
Am I doing it right?
Is there a better way to use Android Libraries as a submodule in Eclipse?
|Asked By – azgolfer||Read Answers|