报错截图:

安卓 android studio 报错 WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and

问题原因:compile会被在2018年底取消,会被imlementation替代,所以会报这个警告,解决警告的方式就是换成 imlementation 就好了

解决方法:

在 app 的 Gradle 中:

compile  改为  implementation
androidTestCompile  改为  androidTestImplementation
testCompile  改为   testImplementation

这样替换了过时的,再重新编译即可。

相关文章:

  • 2021-04-15
  • 2021-10-01
  • 2021-11-05
  • 2022-03-08
  • 2021-11-24
  • 2021-05-24
  • 2022-12-23
  • 2021-04-12
猜你喜欢
  • 2021-08-16
  • 2021-04-22
  • 2021-09-23
  • 2021-12-29
  • 2022-01-05
  • 2021-06-24
  • 2021-10-31
相关资源
相似解决方案