Android Studio点滴小结笔记
来源:互联网 发布:数据可视化展示方案 编辑:程序博客网 时间:2024/03/29 02:47
Creating Modules without copying files
解决方案
The module needs to have a Gradle build file set up for it. If it’s got that, then in the project you’re linking to it, add this to the settings.gradle file at the project root
include ':libraryName'project(':libraryName').projectDir=new File('/path/to/library')
例如要把外部工程 volley
引入
include ':volley'project(':volley').projectDir=new File('../volley')
参考
http://stackoverflow.com/questions/24658422/android-studio-0-8-1-creating-modules-without-copying-files
应用某个模块 (例如上一步的 volley
)
修改要依赖 volley
的项目的 build.gradle
文件
修改 dependencies
为 (其中的 compile 和 androidTestCompile 为新增加的)
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.0.1' androidTestCompile project(':volley') compile project(':volley')}
删除模块
解决方案
模块上 -> 右键 Open Module Settings -> 左侧选中相应模块 -> 点击左上角的 - 按钮
磁盘上删除此模块
参考
http://stackoverflow.com/questions/16710290/how-to-delete-a-module-in-android-studio
0 0
- Android Studio点滴小结笔记
- android学习笔记点滴
- Android开发点滴笔记
- 【Android开发点滴】Android Studio常用快捷键
- 点滴小结
- Android Studio使用小结
- Android-Studio-插件小结
- Android Studio 测试小结
- Android Studio学习小结
- android studio入门小结
- Android studio 3.0(AS3.0)使用点滴
- Android studio 使用问题小结
- Android Studio项目迁移小结
- Android Studio多渠道打包小结
- android studio断点调试小结
- Android Studio 3.0升级小结
- Android Studio代码混淆小结
- Android Studio: JNI 使用小结
- Xcode6 自行添加.pch文件设置方法
- My coding way (5)
- win7运行bat文件 一闪而过 解决
- Jmeter之逻辑控制器(Logic Controller)
- [HTML5学习]HTML5课程大纲介绍_JavaScrpt知识点整理
- Android Studio点滴小结笔记
- 一带一路:中国版的“大博弈”
- Jmeter之HTTP Request Defaults
- iPhone屏幕尺寸、分辨率及适配
- android退出应用程序
- 文章标题
- 人人必知的10个jQuery小技巧
- ios之点击操作(单双指单双击)
- mysql中order和limit问题,请教大家