在Android Studio中有六种依赖
来源:互联网 发布:linux保存命令 编辑:程序博客网 时间:2024/05/16 11:43
在Android Studio中有六种依赖
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
- spring aop面向切面详解,以及heibernate和mybatis的区别(缓存)
- 跳转问题
- Android invalidate()源码分析
- 【Hibernate系列】(三):三种状态之原来我不懂你
- UVa 442 栈 矩阵链乘
- 在Android Studio中有六种依赖
- [Maven实战](6)仓库(本地仓库,远程仓库,镜像)
- 线程基础:线程(1)——操作系统和线程原理
- MySQL事务介绍及原理
- I am a student. student.a am I
- merge和saveOrUpdate方法区别
- iOS如何定位 IDFA?
- Complex Double
- osgearth使用arcgis地图服务的问题