[英]maven { url 'https://maven.google.com' } keep disapearing from my gradle
after i installed the android studio on my new computer it keep popping me messages of errors.在我的新计算机上安装 android studio 后,它不断向我弹出错误消息。 like so:像这样:
i found the solution to the problem and fixed it by adding the maven repository to the build.gradle
like so:我找到了问题的解决方案并通过将 maven 存储库添加到build.gradle
来修复它,如下所示:
allprojects {
repositories {
jcenter()
**maven { url 'https://maven.google.com' }**
}
}
the problem is it keeps deleting with every project that i open, how can i add the maven permanently for all future projects?问题是它随着我打开的每个项目不断删除,我如何为所有未来的项目永久添加 maven?
thank you谢谢你
Once i update my Android Studio to the latest version at this time (3.0) and all of its SDK Tools Packages the problem went away.一旦我将我的 Android Studio 更新到此时的最新版本 (3.0) 及其所有 SDK 工具包,问题就消失了。
Good luck.祝你好运。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.