Unable to resolve dependency

跟風遠走 提交于 2020-02-06 08:24:47

问题


when build , show this error :

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.1.1.


回答1:


Just add google() under repositories as highlighted in attached picture to your project gradle, as google has move its repositories to maven you have to add this way, hope this helps you!!! or read this official doc Support Library Setup

Another nice asnwer by Gabriele Mariotti Using google() as a repository doesn't work



来源:https://stackoverflow.com/questions/49854833/unable-to-resolve-dependency

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!