android 对外部类的管理策略
来源:互联网 发布:知乎删除回答重新回答 编辑:程序博客网 时间:2024/05/16 05:38
Dependency resolution
When a project references two Library projects that both require the same jar file, the build system has to detect and resolve the duplication.A full dependency system would associate each jar file with a fully qualified name and a version number to figure out which version to use.
Unfortunately the Android build system does not have a full dependency resolution system (yet). In the meantime we have implemented a very basic system that follows these rules:
Jar file are identified strictly by their file names.
This means mylib.jar is different than mylib-v2.jar and both will be packaged, possibly resulting in “already added” dx error if they are actually the same library in a different revision.
For jars with the same file name, “same version” means same exact file.
Currently our detection is very basic, checking only that the files are identical in size and sha1.If two libraries each include in their libs folder a file called mylib.jar but these two files are different, then the build system will fail indicating a dependency error.The solution is to make sure the two jar files are actually the same one if they are the same library or to rename them if they are different libraries.
Special case for android-support-v4.jar and android-support-v13.jar.
We make a special case for these two libraries because -v13 contains a full version of -v4 inside. If both are found, then only -v13 will be used.Note that we can’t guarantee that the version of -v4 inside -v13 is the same as version used by the other libraries. We recommend that when you update your project with a newer version of the support library, you update all of your projects at the same time, whether they use -v4 or -v13.
- android 对外部类的管理策略
- 在内部类中生成对外部类的引用
- java中内部方法对外部类变量的引用
- Java.内部类方法对外部类对象的引用x-this.x-Test.this.x
- 十、android的ContentProvider对外共享数据
- android数据对外共享的方式----contentProvider
- Android内存管理策略的优化
- Android内存管理策略的优化
- Android内存管理策略的优化
- Android内存管理策略的优化
- java内部类(1):java内部类的创建以及对外提供的访问方式,匿名内部类详解
- wm 操作系统对外设的电源状态的管理
- C++嵌套类的使用及对外部类的访问权限
- Android 对外共享数据
- android内存管理,垃圾回收策略的疑惑
- android内存管理,垃圾回收策略的疑惑
- android Contextprovider 对外共享数据
- 代码的分支管理策略
- 如何用DNS+GeoIP+Nginx+Varnish做世界级的CDN
- js窃取字符串的长度中文2个长度字母1个长度!
- 归纳一下:C#线程同步的几种方法
- 让VSS记住你的用户名和密码
- C#如何监听全局的事件-例如鼠标移动事件
- android 对外部类的管理策略
- 水晶报表数据库字段只显示日期不显示时间问题。
- C++ MFC对话框打开文件
- EOJ 1019 着弹点
- Asp.net_防重复提交机制
- Windows下socket通信步骤
- 不用sizeof来求出int的大小(程序)
- 用Darwin实现流媒体转发程序(附源码)
- 求32位机器上unsigned int的最大值及int的最大值