


After creating the project, go to New -> New Module: You can use this application to test your library. When you create a new Android project, a new application is always created. aar file can include the following types of files: However, if you intend to include resources such as layouts, drawables, or string resources, or even an additional AndroidManifest.xml file, you must create an Android Archive Resource. If you plan to share only standard Java code, you can distribute them packaged as Java Archive Resources (. Also, if your code base begins to take longer times to compile and/or run, creating a library also enables you to iterate faster by working on a smaller component. You can share existing activities, services, images, drawables, resource strings, and layout files that enable other people to leverage your work such as those documented in the must have libraries guide. Building your own Android library enables other developers to take advantage of code that you've written.
