Create an Android Jar library for distribution

后端 未结 11 1334
眼角桃花
眼角桃花 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:40

    Try this: This works

    1) make your library project a normal project by deselecting IsLibrary flag.

    2) Execute your project as Android Application. (It will not show any error)

    3) you'll find a .jar file in bin folder along with .apk.

    4) Give you .jar who want to use your library.

    5) Tell them to just import external jar into build path.

    this will works fine with all the resources. best of luck.

提交回复
热议问题