简体   繁体   中英

How can I make a gradle from a Library Project Android Studio

I am using Android Studio. I have created a library project.and I have successfully included this library in another prstoject.I have followed the below steps to include that library in my project.

aI have added that library folder in my project root folder.

b.In settings.gradle file include ':library' c.In build.gradle file compile project(':library')

Now I want to add library as a gradle file .I want to implement just one line in build.gradle file compile 'com.example.library' and then I can access that library files etc.I don't want to add the library folder in my project.Because when the library folder gets increased at that time my project size is also get increased which is not beneficial for me.So guys please suggest me how can I achieve this.How can I get that gradle file or if you have any idea please suggest me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM