按照网上查到的一些解决方法都说是gradle的问题,我就修改了它的版本:把原来的6.5,改成了6.5.1

点击项目->右键open module setting

 

 

参考:https://blog.csdn.net/whjk20/article/details/108545522