1

I'm trying to edit a external library base of answers in here, but it's not working on android studio 3.1.2(which it's the version i'm using).

Base on what people said, i should get library from github, import module. I want to change digits of this Elegant Button library.

So what i did was I've downloaded this library with download/zip, then File > new > Import Module and did some configuration and decencies and still it's not working. looks like these method won't work with new version of android studio. can anyone explain how to edit with android studio 3.1.2?

enter image description here

  • 1
    `File > new > Import Module` is not a method . These are steps to add a project as module . Once you have project as module you can make changes in its code. – ADM Aug 17 '18 at 11:44
  • 3
    Does this answer your question? [Editing external libraries in Android Studio](https://stackoverflow.com/questions/48635049/editing-external-libraries-in-android-studio) – Samir Alakbarov Aug 16 '20 at 16:00

1 Answers1

3

Add external library to project

Steps:

Unzip the file

Go to Android studio - File - New Import Module

Import the module and click OK

Once you added the library add the library to app gradle also

implementation project(path: ':library-name')
Bunny
  • 1,044
  • 12
  • 23
  • how can i edit library i've named at top? how can i download the library code to edit it? i guess the reason that i've failed is because i've download zip in github page. – Mohammad Eskandari Aug 17 '18 at 12:16
  • there is no problem with zip ,its a project you need to unzip the above project and import the library folder which used in this project.. – Bunny Aug 17 '18 at 12:34
  • i've added a image, please check and tell me what to choose, i've choosed lib once, and nothing happened. – Mohammad Eskandari Aug 17 '18 at 12:46
  • yeah i can see the screeshot as i said dont import full project only import the library name as lib in this project ....you are importig the full project thats doesnt make sense – Bunny Aug 17 '18 at 12:52