Android Error:Failed to resolve:xxx, Add Google Maven repository and sync project

Posted by Don on July 1, 2019

如果在某一天你打开之前的项目后发现报错如下:

Error:Failed to resolve:xxx, Add Google Maven repository and sync project

那么,恭喜你,解决方案如下: 在Project的build.gradle中添加如下代码: