Add an android library to the default list of libraries in Studio/SDK -


so first of all, clear doubts, know how add library android project. question here that, want add library list of default libraries in android studio.

let me explain example. let's want add glide library project. firstly, have go glide github page , then, there copy compile 'com.github.bumptech.glide:glide:3.7.0' text , paste in in build.gradle file . android studio download library on internet. every time want use glide library in of project, have this. want , that, want include specific libary glide in default list of libraries available me

enter image description here

so here, want include library project, can use it, in of projects. in advance, reading.

there way add library every new project/module automatically. there folder templates in android studio directory. for:

..\android studio\plugins\android\lib\templates\gradle-projects\newandroidmodule\root 

in directory there file:

build.gradle.tfl 

modify according needs.
example:

dependencies {     <#if dependencylist?? >     <#list dependencylist dependency>     compile '${dependency}'     </#list>     </#if>     compile filetree(dir: 'libs', include: ['*.jar']) <#if wearprojectname?has_content && numberofenabledformfactors?has_content && numberofenabledformfactors gt 1 && wearincluded>     wearapp project(':${wearprojectname}')     compile 'com.google.android.gms:play-services:+' </#if> <#if unittestssupported>     testcompile 'junit:junit:${junitversion}' </#if>     compile 'com.github.bumptech.glide:glide:3.7.0' } 

as can see, glide library has been added @ end.

when file modified, every new android phone & table module have library included.

of course there nothing prevents adding own module or project template.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -