{"repo":"jitpack/android-example","free":true,"listed":false,"github":"https://github.com/jitpack/android-example","clone":"git clone https://github.com/jitpack/android-example.git","description":"Example Android library that builds on jitpack.io","language":"Kotlin","stars":226,"topics":["android-library","jitpack","gradle","kotlin","android"],"license":null,"category":"mobile-apps","readme_excerpt":"android-example Example Android library project that works with jitpack.io. See this Tutorial on how to publish an Android Library with JitPack. For more details check out the documentation https://jitpack.io/#jitpack/android-example Add it to your settings.gradle with: and: Multiple build variants If your library uses multiple flavours then see this example: https://github.com/jitpack-io/android-jitpack-library-example Adding the maven plugin To enable installing into local maven repository and JitPack you need to add the maven-publish plugin: Then add the publishing section to your library build.gradle: After these changes you should be able to run: ./gradlew publishToMavenLocal from the root of your project. If publishToMavenLocal works and you have added a GitHub release it should work on jitpack.io Adding a sample app If you add a sample app to the same repo then your app needs to have a dependency on the library. To do this in your app/build.gradle add:","default_branch":null,"files":null,"tree":[],"storefront":"/r/jitpack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jitpack/android-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}