3

How do I build a JAR file from an Android Studio project? I've followed a lot of guides without much success. I tried compiling as a regular and library project but no JAR file get automatically generated. Do I have to do it manually or resort to Ant to get the Jar file?

1 Answer 1

1

Android Studio will compile your library into an AAR not a JAR. AARs are a little different since we rely on the SDK rather than a JAR to give use the Android API.

You will find the AAR under LibraryName/build/libs/LibraryName.aar.

Sign up to request clarification or add additional context in comments.

1 Comment

Also remember one thing this /libs directory will not be visible in Android Studio's project explorer. Search it in your project directory on drive.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.