Sunday, May 3, 2015

Sharing a library project between two Android Studio projects

Hi,

I'm in the process of migrating over from Eclipse and I'm certainly having some growing pains.

Eclipse was very straightforward with Android Library projects. Create a project, mark it as an Android Library, and then reference it from non-library Android projects in the same workspace. When code changes in the library project, nothing needed to be changed in the non-library projects.

Android Studio does not seem to be so simple. I've worked my way through the tutorials and I have gotten to the point where I can import my library project as a module, and add it as a dependency to my app module.

But the huge issue here is that it copies my entire library module into the non-library project as a sub-folder. Now, when I make changes to my library project, they are not reflected in my non-library projects unless I manually remove the module, delete the sub-folder, and re-add the library module.

I hope this is not how this was intended. Maybe I'm doing something wrong? Can someone give me some pointers?

Thanks in advance!



Submitted May 03, 2015 at 09:54PM by zholmes http://www.reddit.com/r/androiddev/comments/34qbx1/sharing_a_library_project_between_two_android/ Sponsser By Best Android Phone

No comments:

Post a Comment