What's the difference between principles of useLibrary and compile files('') in build.gradle?

别等时光非礼了梦想. 提交于 2019-12-04 07:56:34

useLibrary adds the library to classpath while compiling but does not bundle the library with the application.

compile dependencies are in classpath at compile time and additionally they get shipped with your APK.

For the Apache HttpClient support, use useLibrary when compiling with SDK 23+. The library is already there in the target platform. It is just not there in the compile SDK.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!