在Android Studio中有六种依赖
来源:互联网 发布:移动套餐推荐 知乎 编辑:程序博客网 时间:2024/05/22 14:25
Compile,Provided,APK,Test compile,Debug compile,Release compile
Compile
compile是对所有的build type以及favlors都会参与编译并且打包到最终的apk文件中。
Provided
Provided是对所有的build type以及favlors只在编译时使用,类似eclipse中的external-libs,只参与编译,不打包到最终apk。
APK
只会打包到apk文件中,而不参与编译,所以不能再代码中直接调用jar中的类或方法,否则在编译时会报错
Test compile
Test compile 仅仅是针对单元测试代码的编译编译以及最终打包测试apk时有效,而对正常的debug或者release apk包不起作用。
Debug compile
Debug compile 仅仅针对debug模式的编译和最终的debug apk打包。
Release compile
Release compile 仅仅针对Release 模式的编译和最终的Release apk打包。
0 0
- 在Android Studio中有六种依赖
- 在Android Studio中有六种依赖
- 在Android Studio中有六种依赖
- 在Android Studio中有六种依赖
- 在Android Studio中有六种依赖
- 在Android Studio中有六种依赖
- 在Android Studio中有六种依赖
- 在Android Studio中有六种依赖
- Android Studio中有六种依赖
- android studio 增加依赖
- Android Studio依赖排除
- android studio 包依赖
- Android studio依赖项目
- android studio MyToast 依赖
- Android Studio 依赖管理
- android studio 依赖问题
- Android Studio dependencies依赖
- Android Studio依赖aar
- 在构建maven项目中 <version>${spring.version}</version>含义
- CentOS7使用firewalld打开关闭防火墙与端口
- 【搜索】洛谷 P1141 01迷宫
- 数据结构复习5.Comparable和Comparator
- 浅谈Java中的equals()和==
- 在Android Studio中有六种依赖
- 【深度学习】---行人检测应用二
- 【排序】洛谷 P1138 第k小整数
- Linux 安装MySql
- Linux环境下运行mysql图形化数据库管理工具Navicat11.2.15 之wine的安装(一)
- centOS 6.5关闭防火墙步骤
- PHP调用微信JSSDK接口 选择相册及拍照、图片上传
- 快速排序
- UE4学习之路