原因 compile会被在2018年底取消,会被imlementation替代,所以会报这个警告,解决警告的方式就是换成imlementation就好了 解决办法 将compile全部换成implementation即可