AndroidStudio中导入module详细介绍
2018-01-21 23:07
417 查看
下面看图说话:
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.别忘了下面的操作:
希望对大家有用
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.别忘了下面的操作:
希望对大家有用
相关文章推荐
- AndroidStudio中导入module(超详细)
- androidstudio使用SlidingMenu库(导入Module方式)--超级详细
- AndroidStudio中导入module(超详细)
- nodejs中exports与module.exports的区别详细介绍
- 数据泵导入导出详细介绍
- 环信集成导入详细介绍与填坑(一)
- AndroidStudio中导入module(简单版)
- AndroidStudio中导入jar包方法(超详细)
- androidstudio 导入module和删除module
- AndroidStudio如何导入项目与移除列表module
- 导入一个AndroidStudio工程作为一个Library Module
- 如何在AndroidStudio中导入Module
- cocos2d-x JsonCpp 导入和详细使用介绍
- nodejs中exports与module.exports的区别详细介绍
- nodejs中exports与module.exports的区别详细介绍
- cocos2d-x JsonCpp 导入和详细使用介绍
- nodejs中exports与module.exports的区别详细介绍
- AndroidStudio导入项目到VisualSVN Server并忽略(ignore)相关文件详细步骤
- 导入一个AndroidStudio工程作为一个Library Module
- Oracle 导入导出详细介绍