Can we have multiple apps in one Android Studio project?

前端 未结 5 1184
小蘑菇
小蘑菇 2020-12-07 14:07

I am using Android Studio for developing Android apps. But I have heard in Android Studio it is better to have only one app in a single (one project per app) if that is righ

5条回答
  •  太阳男子
    2020-12-07 14:16

    Adding this as an answer since I don't have enough reputation for comments yet.

    For the answer to your question - Check this question that I have raised. Is this the same boat you were in ?

    TL;DR

    I was able to have multiple apps in the same Android Studio Project, build and run them without any issues. Another member corroborated my claims in the comments on the Question.

    @Android Studio Pros : Please check the above link and add your insights. This seems to be a confusing aspect.

    My Take

    I think I agree with @Kai's answer. But there are instances where we want multiple apps to have common library dependencies and don't want to duplicate the library dependencies. Wouldn't multiple apps be fine as long as the common library dependencies have ONLY common code and nothing else. The separate modules hold the individual app related code and that's where the differentiation is.

提交回复
热议问题