Git Version Projects and Libraries

Please read both 1 and 2. If you are not an Android developer, you can still help, because this is a version issue.

Here is the situation:

I have inherited the android project created in IntelliJ and am currently importing it into Eclipse. But many obstacles lie in the way ...

  • IntelliJ Android Libraries can have subdirectories (children) of the project, however in Eclipse you can select only those Android libraries that are in the current workspace (Siblings). Can I select a child directory?
  • If # 1 cannot be fixed, then how can I approach the following: I have an Android library project that contains many reusable components (static utilities). Assume that the Android library is a child directory for the project. I have a version 1 application that uses the Android library. Now I am creating version 2, which uses the Android library, but I am also updating the library APIs (changing some methods). Version 2 is under development and version 1 is supported. When Eclipse cleans up projects, the Android library is no longer compatible with version 1 because the API has changed.

The legacy project was built into IntelliJ, and the Android library was a submodule of git repo and git. So the link was to a git commit, and the repo could be updated externally. I basically need to get version control using the Android libraries (I don't want to use or not use the w20> submodules). Anyone have a solution?

+3
source share
1 answer

Answer to

IntelliJ Android Libraries can have subdirectories (children) of the project, however in Eclipse you can only select Android libraries that are in the current workspace (Siblings). Can I select a child directory?

Yes, you can reference the child directory (Android library Project) in your application project.

1. .

2: eclipse.

File โ†’ Import, Android Existing Android Code Into Workspace, Root Directory . , . , , . Finish.

3. .

Android properties library section.

.

+2

All Articles