How to Convert an Android Library Project to an External JAR?

前端 未结 2 1959
终归单人心
终归单人心 2020-12-09 03:47

I have an Android library project that has been working for me pretty well, but now I am interested in \"converting\" it to an external JAR.

How do I do that?

<
2条回答
  •  一生所求
    2020-12-09 04:13

    http://developer.android.com/guide/developing/projects/index.html#LibraryProjects claims that you can't export these to an external JAR. Specific quote:

    Similarly, you cannot export the library project to a self-contained JAR file, as you would do for a true library. Instead, you must compile the library indirectly, by referencing the library in the dependent application and building that application.

提交回复
热议问题