加入收藏 | 设为首页 | 会员中心 | 我要投稿 航空爱好网 (https://www.52kongjun.com/)- 自然语言处理、云硬盘、数据治理、数据工坊、存储容灾!
当前位置: 首页 > 教程 > 正文

Android Studio升级到3.1出现的改变

发布时间:2023-11-10 10:31:11 所属栏目:教程 来源:转载
导读:   Configuration 'compile' is obsolete and has been replaced with 'implementation'.It will be removed at the end of 2018`



  在3.1中所有模块的compile 对
  Configuration 'compile' is obsolete and has been replaced with 'implementation'.It will be removed at the end of 2018`
 
  在3.1中所有模块的compile 对应字段都要替换成 implementation,如果不替换掉会在gradle的时候报错,运行不上项目。(强制使用implementation, 不过报错也不够精准。需要你仔细观察gradle的输出)
 
  如果你的项目使用多个依赖,而且依赖之间又有相互依赖,你想在主项目里只依赖一个库,那就需要在其他依赖库里使用api引用库,这样所引用的库就可在当前module外使用了。
 

(编辑:航空爱好网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章