Android Library Project using Android Studio

后端 未结 6 2111
离开以前
离开以前 2021-01-31 16:12

This question might have been answered somewhere but couldn\'t find the appropriate one.

I want to know how can I create a common utility library project in Android Stud

6条回答
  •  忘了有多久
    2021-01-31 16:38

    when you create a new project in Android Studio, one of the options is "mark as library".
    alternatively, just create the project like any other. then when using it elsewhere, in the library's gradle file make sure you change apply-plugin "android" to apply-plugin "android-library" and add it as a dependency to the app that's using it. For more on how to add the created project as a library, see here.

提交回复
热议问题