Android在运行时检查依赖项可用性

时间:2017-10-25 13:17:43

标签: java android gradle android-gradle

我们说我将以下依赖项添加到我的应用级build.gradle文件中:

compile 'com.squareup.retrofit2:retrofit:2.3.0'

如何在运行时检查是否存在某种依赖关系?

1 个答案:

答案 0 :(得分:3)

您将无法首先运行应用程序,因为如果依赖项不存在,则无法构建.apk。没有运行时检查gradle依赖项。

相关问题