Android Studio导入其他工程的app作为module
2017-09-01 17:18
573 查看
往往下载别人的demo,功能效果都在demo中的app。如果一个个拷贝类过来很麻烦,特别多配置的,重点是会影响到项目中的app会变的很臃肿。解决方案:把demo的app作为module导入到项目中,依赖于项目的app缺点:app可以任意使用module中的内容,但是module不能使用app中的内容(弥补:参数传递暂时处理)ok,开始操作流程:1、导入:点击file,选择import module,选择demo中的app路径2、修改参数:新导入的module中的build文件下的apply plugin: 'com.android.application'修改apply plugin: 'com.android.library'(很关键)3、依赖:点击app,选择Open Module Setting ,点击dependencies右边的加号选择刚导入的module基本上面就弄好了可能出现的问题:1、检查setting.gradle是否已经include进module2、如果module下libs有aar文件,去app下的build中的android下repositories {flatDir { dirs '../Mondule名字/libs' }}后续待续。。。有问题加扣扣:893151960
相关文章推荐
- Android studio 导入依赖工程(导入其他工程作为lib)
- [Android]Android studio 通用工程项目作为通用库与其他app相依赖的本地实现
- Android应用作为jar包导入到其他app中资源文件找不到问题
- 导入Android工程作为Library Module流程及问题集
- 将ijkplayer导入android studio并运行(附导入工程和导入module的方法)
- 导入一个AndroidStudio工程作为一个Library Module-----待整理
- android studio导入其他项目工程报错解决方法
- Android Studio工程导入另一个工程作为lib
- module作为多个APP的业务包依赖导入studio不能提交SVN不能与源文件的同步修改内容的问题
- (4.5.3.3)Android Studio导入eclipse工程出现“app:mergeDebugResources“
- android studio 生成aar包并在其他工程引用 (导入)aar包
- 将GitHub上下载的项目工程作为Module导入自己的项目中
- android studio 导入项目作为主工程依赖库
- android studio 导入module作为lib使用
- 导入一个AndroidStudio工程作为一个Library Module
- 其他工程做为module、Library导入AS工程,Module之间共享资源
- Android Studio 导入工程出现Error:Execution failed for task ':app:mergeDebugResources'.
- Android Studio中新建的工程中使用了Module,从app中去调用Module中的东西,需要如何操作。
- eclipse Android 工程在Libs导入第三方jar / Android工程作为library为其他工程提供引用
- Android Studio导入eclipse工程后报错:app:mergeDebugResources