This error is always reported when introducing V7 packages, and various attempts have failed to resolve it. You can lower the version compileSdkVersion to a lower version than the Android SDK Tools version. But that still doesn’t solve the problem. I didn’t solve the problem until I read this article. Appreciate when the proposed solution: www.cnblogs.com/devilmaycry…

Personally, I prefer plan three.

The reason is that different versions of Android Studio support repositories.

Also related to gradle version in gradle-wrapper.properties. Studio will alert you for updates. Once the update is successful, it’s ok.