在Android Studio中有六种依赖
来源:互联网 发布:microsoft mac 编辑:程序博客网 时间:2024/06/11 09:08
在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
- HTTPS通讯过程原理
- Android fragment 重叠问题的解决方法
- 线程安全的理论讲解(volatile)
- javaScript中的数组篇——常用方法
- iOS多线程
- 在Android Studio中有六种依赖
- 神经视觉感知Perception Lecture Notes: LGN and V1
- Windows tomcat部署 solr
- C++作业1
- Swift 学习记录(4)
- 谈谈关于开发中的"锁"
- 动态代理获取方法上的注解(Retrofit框架必备内容)
- 结构体字节对齐
- Xutils 如何增加TLS1.2的支持