


Select Android Library from the options and click on Next and Finish it Your module toaster library has been added. Step 2: Create a new library module within the Android app Open Android Studio and create a new project and name it as ToasterExample Create a new Android Project name as “ToasterExample”Ĭlick on Finish and your project will be ready. Step 1: Create a new Android app that showcases the library Step 6: Setup to share your library with any other android project using Jitpack.Step 4: Add the library as a dependency to the project.' Note: If youre most comfortable with a point-and-click user interface, consider adding your project with GitHub Desktop instead. To learn more about GitHub CLI, see ' About GitHub CLI. Step 3: Write the code for your custom library GitHub CLI can simplify the process of adding an existing project to GitHub using the command line.Step 2: Create a new library module within the Android app.

Step 1: Create a new Android app that showcases the library.So let’s start Steps which we are following In this tutorial, we are going to create an Android Library, and we also see how we can distribute it to JitPack so we can use it as a dependency Gradle in other Android projects. However, instead of compiling into an APK that runs on a device, an Android library compiles into an Android Archive (AAR) file that you can use as a dependency for an Android app module. It can include everything needed to build an app, including source code, resource files, and an Android manifest. I always wonder how android dependency works.Īn Android library is structurally the same as an Android app module. Solution 1 - Android Sign up and create a GitHub account in Download git from install it in your system.
