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

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

问题描述

在Android Studio中,依存关系"标签中的模块设置"中,您可以选择库文件的作用域. "compile"和"provided"有什么区别?

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天全站免登陆