How to edit external library for android studio 3.

2019-09-03 15:03发布

问题:

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?

回答1:

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')