【问题标题】:Android Design Support Library does not compileAndroid 设计支持库无法编译
【发布时间】:2018-08-02 04:46:19
【问题描述】:

https://gist.github.com/koraytem/89338cddbd50442164aeb555393a0d09 伙计们,这里是我的 gradle 页面的链接。当我添加android设计支持库编译时,它给了我这个错误

配置“编译”已过时,已替换为 “实施”和“API”。它将在 2018 年底被删除。对于 更多信息见: http://d.android.com/r/tools/update-dependency-configurations.html`。 感谢您的帮助。

【问题讨论】:

    标签: android compilation implementation


    【解决方案1】:

    从 Gradle 插件 3.0.0 开始,引入了新的配置依赖项。如需更多信息,请在official link 处查看使用新的依赖配置。

    正如您在警告消息中看到的,compile 已过时,需要使用 implementation。因此需要进行以下更改:

    当前是:

    compile 'com.android.support:design:27.1.1'
    

    改为:

    implementation 'com.android.support:design:27.1.1'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-04
      • 1970-01-01
      • 1970-01-01
      • 2015-08-26
      • 2015-10-19
      • 2016-12-29
      • 1970-01-01
      相关资源
      最近更新 更多