Start Your Android Studio.
Then open your Project ( I Assume that you already had a android project ).
Now "The Export "
yeah "The Export"
to export the project to JAR file in Android Studio we need to create new Module of Java Library.
how do we create the Module Java Library..
click "File > New > New Module..." like image below..
then. select Java Library then click "Next" Button
in "Create New Module" window
type "Library name" , "Java package name", "java class name" like what you create in your project.. you can delete it afte Module is created.
then click "Finish" button.
here a sample my Java Library Module.
open the "build.gradle"
as you see that in dependencies > compile fileTree there is dir:'libs' that refer to libs directory where I store my Library .jar file for mya Java Library.
next Open Gradle Project.
click "build"
after build successful.
we can fin the library in Project directory:
Project Dir / Library Module Name / build / libs
for example my library result located:
okay friend.. that all what I can share to you.. if you had better way leave a link or notice comment..
hope it helpfull.. ^__^.
This comment has been removed by the author.
ReplyDeleteThanks for your tutorial, could you please upload a complete demo project that shows all steps people can do for ANE
ReplyDelete