Code sharing in Android Studio

后端 未结 4 1994
臣服心动
臣服心动 2021-01-18 07:53

I have started working on a project where I will need to share a bunch of Java classes across a bunch of apps. In Eclipse it was possible to create

4条回答
  •  迷失自我
    2021-01-18 08:01

    You need to think in the eclipse projects as Android Studio/IntelliJ Idea modules. Then, you can generate android (or java) libraries and then include them in your project.

    To mark an Android Studio module as a library you can go to File -> Project Structure -> Facets and there click on Library Module

    enter image description here

提交回复
热议问题