AndroidStudio中导入module详细介绍

下面看图说话:

1.首先是 File--New--Import Module


2.然后就会看到下面的界面,选择自己要用的第三方库或library:



3.Finish后可能会有下面的错误:

Android 添加Library出现错误Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.

没有关系,有错就来解决呗,解决办法:在project目录下的build.gradle 添加如下代码


classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'

4.然后运行又开始出现新的问题了,Error:(2, 0) No service of type Factory available in ProjectScopeServices.


那就在project目录下的build.gradle 里加上下面的代码:

classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
5.别忘了下面的操作:

希望对大家有用

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值