How to distribute Android library

I spun the jar for the Android library project and included this jar in other applications. But on developer.android.com , I see this claim that I cannot distribute the library in the bank:

  • You cannot export a library project to a JAR file

A library cannot be distributed as a binary file (for example, a JAR file). This will be added in a future version of the SDK Tools.

I really don't understand what that means.

+5
source share
2 answers

You can create an Android library project that does not include source code. Limitations:

  • You still have to send resources.

  • , R., . , getResources(). getIdentifier() / .

Advanced Android (http://commonsware.com/AdvAndroid), , . :

" , :

  • Android, . -, .

  • Java (, ant compile) JAR

  • Android Android, ,
  • JAR Android libs/

Android Android , ".

. , --as-JAR .

+5

, ( ) . jar , java-.

- , eclipse, → android, .

, , - git .

+2

All Articles