如何为Android Studio 3.1.2编辑外部库? [英] How to edit external library for android studio 3.1.2?

查看:92
本文介绍了如何为Android Studio 3.1.2编辑外部库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在此处编辑答案的外部库,但是在android studio 3.1.2(这是我正在使用的版本)上不起作用.

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

根据人们所说,我应该从github获取库,导入模块. 我想更改此优雅按钮库的位数.

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

所以我所做的是我已经使用下载/zip下载了该库,然后下载了File > new > Import Module,并进行了一些配置和定义,但仍然无法正常工作.看来这些方法不适用于新版本的android studio.谁能解释一下如何使用android studio 3.1.2进行编辑?

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?

推荐答案

将外部库添加到项目

步骤:

解压缩文件

转到 Android Studio -文件-新导入模块

导入模块,然后单击确定"

Import the module and click OK

添加库后,也将库也添加到应用gradle中

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

implementation project(path: ':library-name')

这篇关于如何为Android Studio 3.1.2编辑外部库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆