{"id":46708,"date":"2024-01-04T17:05:02","date_gmt":"2024-01-04T11:35:02","guid":{"rendered":"https:\/\/www.oneclickitsolution.com\/blog\/?p=46708"},"modified":"2024-09-06T11:37:18","modified_gmt":"2024-09-06T06:07:18","slug":"android-custom-library","status":"publish","type":"post","link":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library","title":{"rendered":"Android Custom Library: Everything You Need to Know"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-introduction-to-android-custom-library\">Introduction to Android Custom Library<\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">From the scratch let\u2019s understand what a library is. Libraries are game changers in the <a href=\"https:\/\/www.oneclickitsolution.com\/services\/offshore-software-development\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>software development<\/strong><\/a> industry across all the technology stacks. Using libraries, we reduce the efforts of developers by performing actions\/functions faster, more effectively and with less amount of boilerplate code. It is a thing that developers are dealing with every day.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Code reusability has been there since the advent of code, and Android is no exception. The final goal of every library is code reusability across all the projects. Every developer often comes in a situation where there is some code which is good to get reused in other projects or in the future. As an android developer this is the situation where you can think of an android library.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Apart from the usage of other 3rd party libraries, as an android developer if you have some bunch of code that can be reused in the future, you can think of creating your own android custom library, where you can put your bunch of code and reuse it in other projects without writing or copy\/paste the same code in every project.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-importance-of-android-custom-library\"><b>Importance of Android Custom Library<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">When we are developing an Android application, we have some code that is there in all the <a href=\"https:\/\/www.oneclickitsolution.com\/services\/mobile-app-development\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>mobile applications<\/strong><\/a> we develop. For example, a function to check whether the internet is available or not, a function to check whether an email is correct or not, a function to download any file from the internet.<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.oneclickitsolution.com\/contact-us\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library-CTA2.png\" alt=\"Android Custom Library CTA2\" class=\"wp-image-46723\"\/><\/a><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">So this kind of code we can have in an android library and using that library in a project we can use those functions in every project, all you need to do is just implement that custom library in every project.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-a-deep-dive-into-the-creation-of-android-custom-library\">A Deep Dive into the Creation of Android Custom Library<\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Let\u2019s rock &amp; roll. Below are steps of creating a custom library &amp; deploying it on JitPack:<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-1-project-creation\">Step 1: Project Creation<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Create an Android project and add a library module, here the library module name is <\/span><b>libutils<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library-1.png\" alt=\"Android Custom Library 1\" class=\"wp-image-46709\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-2-library-configuration\">Step 2: Library Configuration<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Now, we have to make some changes on the build.gradle files of the library.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">&#8211; Add <\/span>classpath &#8220;com.github.dcendents:android-maven-gradle-plugin:$LATEST_VERSION&#8221;<span style=\"font-weight: 400;\"> in the project level build.gradle file.<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"kotlin\" class=\"language-kotlin\"><div style=\"background-color: #1e1e20; padding: 10px; border-radius: 5px;\"><span style=\"color: #ffffff;\"><code><span style=\"color: #ffffff;\">dependencies {<\/span><br>\n<span style=\"color: #ffffff;\">&nbsp; &nbsp;classpath<\/span> <span style=\"color: #99cc00;\">\"com.android.tools.build:gradle:4.2.2\"<\/span><br>\n<span style=\"color: #ffffff;\">&nbsp; &nbsp;classpath<\/span> <span style=\"color: #99cc00;\">\"org.jetbrains.kotlin:kotlin-gradle-plugin:<\/span><span style=\"color: #ffffff;\">$kotlin_version\"<\/span><br>\n<span style=\"color: #ffffff;\">&nbsp; &nbsp;classpath<\/span> <span style=\"color: #99cc00;\">\"com.github.dcendents:android-maven-gradle-plugin:2.1\"<\/span><br>\n<span style=\"color: #999999;\">&nbsp; &nbsp;\/\/ NOTE: Do not place your application dependencies here; they belong<\/span><br>\n<span style=\"color: #999999;\">&nbsp; &nbsp;\/\/ in the individual model build.gradle files<\/span><br>\n<\/code><\/span><\/div><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">&#8211; Add id <\/span><b>&#8216;com.github.dcendents.android-maven&#8217;<\/b><span style=\"font-weight: 400;\"> in library\u2019s build.gradle.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">&#8211; Add group= <\/span><b>&#8216;com.github.darshanpopat&#8217;<\/b><span style=\"font-weight: 400;\"> after plugins part in library\u2019s build.gradle.<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"kotlin\" class=\"language-kotlin\"><div style=\"background-color: #1e1e20; padding: 10px; border-radius: 5px;\"><code><span style=\"color: #ffffff;\">plugins {<\/span>\n\n<span style=\"color: #ffffff;\">&nbsp; &nbsp;id <span style=\"color: #99cc00;\">'com.android.library'<\/span><\/span>\n\n<span style=\"color: #ffffff;\">&nbsp; &nbsp;id <span style=\"color: #99cc00;\">'kotin-android'<\/span><\/span>\n\n<span style=\"color: #ffffff;\">&nbsp; &nbsp;id <span style=\"color: #99cc00;\">'com.github.dcendents.android-maven'<\/span><\/span>\n\n<span style=\"color: #ffffff;\"> }<\/span>\n\n<span style=\"color: #ffffff;\"><span style=\"color: #cc99ff;\">group<\/span>= <span style=\"color: #99cc00;\">'com.github.darshanpopat'<\/span><\/span><\/code><\/div><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-3-adding-data-to-library\">Step 3: Adding Data to Library<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Now, add files\/code that you want to reuse in other projects in the new module that we have created in Step-1.<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library-3.png\" alt=\"Android Custom Library 3\" class=\"wp-image-46712\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-4-deploying-code-to-git-gitlab-github-bitbucket\">Step 4: Deploying Code to Git (GitLab, GitHub, BitBucket)<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Now we have to upload the project on the Repository on GitHub.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-5-creating-release-on-git\">Step 5: Creating Release on Git<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">After uploading code to GitHub, now it\u2019s time to create a release of that library. The release section will be there on the left-hand side of the Repository page on GitHub. Inside that section, there will be a <\/span><b>\u201cDraft a new release\u201d<\/b><span style=\"font-weight: 400;\"> button. By clicking that button you will see something like the below screenshot:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library-4.png\" alt=\"Android Custom Library 4\" class=\"wp-image-46715\"\/><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">Here on this page, we have to enter release details of our android custom library. Enter the version number of the library like 1.0.0, 1.2.0, 1.5.0, etc. and select the branch in which you have uploaded the latest code of the library (By default it will be the master branch). After this enter release title to identify what you have included in the library.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Also, enter the description of what this release contains so that other people can read and understand what all things have been included.<\/span><\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n<div class=\"box_section_read\">\n<p style=\"border-left: 5px solid #0072bb; padding: 20px 20px; font-size: 20px; line-height: 22px; color: #0072bb; text-align: center; font-style: italic; margin-bottom: 20px; font-weight: 700;\"><span style=\"color:#000000\"> Read More:<\/span> <a href=\"https:\/\/www.oneclickitsolution.com\/blog\/android-vs-ios\/\" target=\"_blank\" rel=\"noreferrer noopener\">Android vs iOS: Which Platform is Better for You?<\/a><\/p>\n<\/div>\n\n<div class=\"wp-block-spacer\" style=\"height: 20px;\" aria-hidden=\"true\"><\/div>\n\n\n\n<p><span style=\"font-weight: 400;\">We can also release the library for testing purposes like Beta or Alpha by using \u201cThis is a pre-release\u201d. This will not be considered as fully released but it will be for testing purposes and then you can mark the pre-release as final release.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Finally, hit the <\/span><b>\u201cPublish Release\u201d<\/b><span style=\"font-weight: 400;\"> button to complete the process.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-6-finishing-process-with-jitpack\">Step 6: Finishing Process with JitPack<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Now it\u2019s time to take JitPack in the picture and finish the uploading process. Open <\/span><a href=\"https:\/\/jitpack.io\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><span style=\"font-weight: 400;\">JitPack<\/span><\/a><span style=\"font-weight: 400;\"> and enter the URL of the GitHub repository in the box.<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library-2.png\" alt=\"Android Custom Library 2\" class=\"wp-image-46710\"\/><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">After posting the URL, hit the <\/span><b>\u201cLook Up\u201d<\/b><span style=\"font-weight: 400;\"> button to start the process. It will find all the releases in the repository and show them in the list. You will see something like these:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library-5.png\" alt=\"Android Custom Library 5\" class=\"wp-image-46716\"\/><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">Here we have created 5 different releases for the library, and it\u2019s showing all with status. You can see in the <\/span><b>Log <\/b><span style=\"font-weight: 400;\">column for the status. If the file icon is red then there are some issues in publishing the library, in this situation you can click on <\/span><b>\u201cReport\u201d<\/b><span style=\"font-weight: 400;\"> to see the error log. If the file icon is Green then the job is done, your custom library is now published.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Click on the <\/span><b>\u201cGet It\u201d<\/b><span style=\"font-weight: 400;\"> button to see how to implement your library in an android application. Refer to below screenshot to see how it will look:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library-6.png\" alt=\"Android Custom Library 6\" class=\"wp-image-46718\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Technology-Stack-used-for-Android-Custom-Library.gif\" alt=\"Technology Stack used for Android Custom Library\" class=\"wp-image-46727\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">That is all we have in the android custom library creation article. By creating our own custom library we can reduce the work of writing the same code in every <a title=\"Android App Development\" href=\"https:\/\/www.oneclickitsolution.com\/services\/android-app-development\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-abc=\"true\"><strong>android application<\/strong><\/a>. Also if we have created the custom library and used it, and we have a situation to update the particular function or we have an issue, the customization will be easy. All you need to do is, go to the library&#8217;s code and make necessary changes and update the library with the new release.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Hope you have enjoyed reading the article and you have learned how to create an android custom library. Now you are ready to share your skills with the world!<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.oneclickitsolution.com\/contact-us\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library-CTA1.png\" alt=\"Android Custom Library CTA1\" class=\"wp-image-46722\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faqs\"><strong>FAQs<\/strong><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1664365674162\"><strong class=\"schema-faq-question\">1. What are the ways of publishing an android custom library?<\/strong> <p class=\"schema-faq-answer\">Basically, there are 2 ways of publishing an android custom library: JitPack and MavenCentral<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1664365711665\"><strong class=\"schema-faq-question\">2. Can we use other Git providers than GitHub?<\/strong> <p class=\"schema-faq-answer\">Yes, we can use almost all Git providers. The below code describes more:<br\/>Other Git Hosts<br\/>&#8211; BitBucket: org.bitbucket.Username:Repo:Tag<br\/>&#8211; GitLab: com.gitlab.Username:Repo:Tag<br\/>&#8211; Gitee: com.gitee.Username:Repo:Tag<br\/>&#8211; Azure: com.azure.Project:Repo:Tag<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1664365772874\"><strong class=\"schema-faq-question\">3. Can we create a custom library for Android projects only? What if we want to use it for other technologies?<\/strong> <p class=\"schema-faq-answer\">Custom libraries are available across all the technologies. Ways can be different but we can have libraries in all the technologies.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to Android Custom Library From the scratch let\u2019s understand what a library is. Libraries are game changers in the software development industry across all the technology stacks. Using libraries, we reduce the efforts of developers by performing actions\/functions faster, more effectively and with less amount of boilerplate code. It is a thing that developers &hellip;<\/p>\n","protected":false},"author":1,"featured_media":54439,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[516],"tags":[889,890,891],"class_list":["post-46708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mobile-apps","tag-android-custom-library","tag-android-library","tag-custom-library"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.2.1 (Yoast SEO v24.8.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android Custom Library in 2026: Everything You Need to Know<\/title>\n<meta name=\"description\" content=\"This article is about creating a custom android library for applications. This library will contain some functions that can be used in any android application.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Custom Library in 2026: Everything You Need to Know\" \/>\n<meta property=\"og:description\" content=\"This article is about creating a custom android library for applications. This library will contain some functions that can be used in any android application.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library\" \/>\n<meta property=\"og:site_name\" content=\"OneClick IT Consultancy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/oneclickconsultancy\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-04T11:35:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-06T06:07:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"OneClick IT Consultancy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@OneclickIT\" \/>\n<meta name=\"twitter:site\" content=\"@OneclickIT\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"OneClick IT Consultancy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Android Custom Library in 2026: Everything You Need to Know","description":"This article is about creating a custom android library for applications. This library will contain some functions that can be used in any android application.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library","og_locale":"en_US","og_type":"article","og_title":"Android Custom Library in 2026: Everything You Need to Know","og_description":"This article is about creating a custom android library for applications. This library will contain some functions that can be used in any android application.","og_url":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library","og_site_name":"OneClick IT Consultancy","article_publisher":"https:\/\/www.facebook.com\/oneclickconsultancy","article_published_time":"2024-01-04T11:35:02+00:00","article_modified_time":"2024-09-06T06:07:18+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library.png","type":"image\/png"}],"author":"OneClick IT Consultancy","twitter_card":"summary_large_image","twitter_creator":"@OneclickIT","twitter_site":"@OneclickIT","twitter_misc":{"Written by":"OneClick IT Consultancy","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#article","isPartOf":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library"},"author":{"name":"OneClick IT Consultancy","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/person\/c2616c0a433427a79a96fe5ca2b34ec3"},"headline":"Android Custom Library: Everything You Need to Know","datePublished":"2024-01-04T11:35:02+00:00","dateModified":"2024-09-06T06:07:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library"},"wordCount":1061,"publisher":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#primaryimage"},"thumbnailUrl":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library.png","keywords":["Android Custom Library","Android Library","Custom Library"],"articleSection":["Mobile Application"],"inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library","url":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library","name":"Android Custom Library in 2026: Everything You Need to Know","isPartOf":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#primaryimage"},"image":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#primaryimage"},"thumbnailUrl":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library.png","datePublished":"2024-01-04T11:35:02+00:00","dateModified":"2024-09-06T06:07:18+00:00","description":"This article is about creating a custom android library for applications. This library will contain some functions that can be used in any android application.","breadcrumb":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365674162"},{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365711665"},{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365772874"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#primaryimage","url":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library.png","contentUrl":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2021\/12\/Android-Custom-Library.png","width":1200,"height":628,"caption":"Android Custom Library"},{"@type":"BreadcrumbList","@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.oneclickitsolution.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Android Custom Library: Everything You Need to Know"}]},{"@type":"WebSite","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#website","url":"https:\/\/www.oneclickitsolution.com\/blog\/","name":"OneClick IT Consultancy","description":"We Build Brands from Ideas","publisher":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/#organization"},"alternateName":"OneClick IT Solution","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oneclickitsolution.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#organization","name":"OneClick IT Consultancy","alternateName":"OneClick IT Solution","url":"https:\/\/www.oneclickitsolution.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2022\/10\/oneclick-official-logo.png","contentUrl":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2022\/10\/oneclick-official-logo.png","width":100,"height":100,"caption":"OneClick IT Consultancy"},"image":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/oneclickconsultancy","https:\/\/x.com\/OneclickIT","https:\/\/www.instagram.com\/oneclick.it.consultancy\/","https:\/\/www.linkedin.com\/company\/one-click-it-consultancy\/","https:\/\/www.pinterest.com\/oneclickitconsultancy\/","https:\/\/www.youtube.com\/channel\/UCsEG6aiwOwvYrcZxMoP5xjg","https:\/\/oneclickit.tumblr.com\/","https:\/\/dribbble.com\/oneclickitconsultancy"]},{"@type":"Person","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/person\/c2616c0a433427a79a96fe5ca2b34ec3","name":"OneClick IT Consultancy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8169ffe1b63da548d77fb666e94f1aba?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8169ffe1b63da548d77fb666e94f1aba?s=96&d=mm&r=g","caption":"OneClick IT Consultancy"},"description":"OneClick IT Consultancy is the best custom software development company based in India &amp; USA with expertise in BLE, travel, mobile, and web development. With nearly a decade\u2019s experience, we use best practices and development standards to deliver high-performance applications, focused on the user experience.","sameAs":["https:\/\/www.oneclickitsolution.com\/blog\/"],"jobTitle":"Founder","url":"https:\/\/www.oneclickitsolution.com\/blog\/author\/oneclick"},{"@type":"Question","@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365674162","position":1,"url":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365674162","name":"1. What are the ways of publishing an android custom library?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Basically, there are 2 ways of publishing an android custom library: JitPack and MavenCentral","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365711665","position":2,"url":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365711665","name":"2. Can we use other Git providers than GitHub?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes, we can use almost all Git providers. The below code describes more:<br\/>Other Git Hosts<br\/>- BitBucket: org.bitbucket.Username:Repo:Tag<br\/>- GitLab: com.gitlab.Username:Repo:Tag<br\/>- Gitee: com.gitee.Username:Repo:Tag<br\/>- Azure: com.azure.Project:Repo:Tag","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365772874","position":3,"url":"https:\/\/www.oneclickitsolution.com\/blog\/android-custom-library#faq-question-1664365772874","name":"3. Can we create a custom library for Android projects only? What if we want to use it for other technologies?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Custom libraries are available across all the technologies. Ways can be different but we can have libraries in all the technologies.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/posts\/46708"}],"collection":[{"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/comments?post=46708"}],"version-history":[{"count":0,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/posts\/46708\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/media\/54439"}],"wp:attachment":[{"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/media?parent=46708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/categories?post=46708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/tags?post=46708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}