Another solution that worked for me with Android Studio 3.1.2:
delete these from build.gradle if you have them:
'com.android.support:appcompat-v7:27.1.1''com.android.support:design:27.1.1'
then sync, then undo delete, then sync again.
就是先删除v7包,sync,然后在还原v7,在aync 问题就解决了
本文介绍了一种在Android Studio 3.1.2中解决构建同步问题的有效方法。通过临时移除并重新添加'appcompat-v7'依赖项,能够成功解决同步错误。
662





