用Android studio導入一個項目時,可以會報
Add Google Maven repository and sync project
有可能的解決方法如下:
在項目的build.gradle中修改如下:
buildscript { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} //jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.1.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} //jcenter() } }
當然報這個錯有可能修改這里還沒有好,但是哥這次修改這樣就好了,哈哈
————————————————
版權聲明:本文為CSDN博主「無風之翼」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/peachs885090/article/details/103048555