I'm just migrating to Android Studio, and I'm a bit confused about how to manage my projects / modules.
For example, in Eclipse I would have 3 projects:
So if I understand correctly, I would create 2 projects in Android Studio, one for AP1, one for AP2, and in both projects I would add the Library project as a module?
When I do that, I suddenly get two Facets
in the Library module called Android
and Android2
. What does this mean?
Also, if I go a bit further, and add multiple libraries as modules, I get (in the Libraries tab under project settings) multiple libraries, libs
, libs1
, libs2
. These may contain double jars, which AS complains about.
If anyone could clear some stuff up, that would be great. Thanks!
You can see a Module in Intellij as a Project in Eclipse.
And a Project in Intellij is the sum of modules that make your project run.
When you create a module from existing sources, Intellij will add it's module.iml configuration file to the specified location. Then all the configuration you have done on this Library module will be re-usable when importing this module in another Intellij project.
I know this post is quite old, but still I found it when facing similar problems as Niek. The structure of my project is similar to Niek's, with a Library, a "Full" app and a "Lite" app. The following describes what I did migrate from Eclipse Luna to Android Studio 1.0.2, with Android SDK 21.0.3. If this can help someone popping on that subject, It would make me a happy man!
If you have minSDKVersion issues, modify your different manifests. I found some answers about that Here and There
Eclipse Project structure
-MyProject-
+--OwnLibrary
| +--support-v4
| +--customLibrary
| +--appcompat-v7
+-App_1
| +--OwnLibrary
|-App_2
+--OwnLibrary
ADDENDUM: When importing modules, if you changed the module name, there will be a few extra steps, ie:
From that 8th point, after importing the OwnLibrary
Thomas.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.