• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Themes How correctly assemble jar file for Android application?

alex_g

Lurker
I need to supply my jar file for customer's Android project.
What way I should assemble this jar?
Now I have 'apply java' in my build and I can run all tasks supplied by java plugin.
But if I want create jar for Android application so I have to run build with
plugin: 'com.android.application' instead 'java' plugin, correct?
So I should remove from build all tasks supplied by java plugin and assemble jar based on android tasks, correct?
Advise please how correctly to deal with this?
Thanks in advance.
 
Android projects don't tend to get compiled and built as a Jar file. They are compiled and packaged into an APK file which can then distributed and run on Android devices.
 
Thanks. So it's impossible to run tasks from java plugin (jar, javadoc etc), but compile sources under Android SDK?
 
Back
Top Bottom