“提供的文件"和“提供的文件"有什么区别?和“编译" [英] What is the difference between "provided files" and "compile"

查看:27
本文介绍了“提供的文件"和“提供的文件"有什么区别?和“编译"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Android Studio 的依赖项"选项卡的模块设置"中,您可以选择库文件的范围.编译"和提供"有什么区别?

In Android studio in the "module settings" in the Dependencies tab you can select a scope for your library files. What is the difference between "compile" and "provided"?

推荐答案

compile 在最终 APK 中包含该库,而 provided 没有;provided 是仅编译时依赖项.

compile includes the library in your final APK, while provided doesn't; provided is a compile-time-only dependency.

这篇关于“提供的文件"和“提供的文件"有什么区别?和“编译"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆