Can we have multiple apps in one Android Studio project?

前端 未结 5 1193
小蘑菇
小蘑菇 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:19

    Yes you can. Inside your project if you want to create a new app do the following:

    • Create a new module by right clicking on your project -> new -> module
    • Select phone and tablet module

    Now you will be able to run either app. This is an excellent way to share code between two apps as it allows you to keep and develop your libraries in one location.

提交回复
热议问题