Create an Android Jar library for distribution

后端 未结 11 1383
眼角桃花
眼角桃花 2020-11-27 09:21

I know of Android Library projects, which allow you to create a shared-source project that can be pulled into Android Applications as needed. However, that requires that sou

11条回答
  •  孤街浪徒
    2020-11-27 09:49

    The only solution 'officially supported' by Google is the Library project, and it requires the source code to be distributed. You can create a JAR in the normal way, but you cannot include or reference resources within it.

    Unfortunately I think it is also not possible to include a packaged JAR within a Library project, as a means to get around the source code requirement.

提交回复
热议问题