Gradle project sync failed. Basic functionality(e.g.editing.debugging) will not work properly.

时间:2024-04-02 17:17:12

在项目中,我们往往需要继承一些第三方的库,以便更加快捷的实现我们的需求;

但是在新建的工程中,我们继承进第三方库后,项目编译不过;控制台出现报错:

ERROR: Failed to resolve

Gradle project sync failed. Basic functionality(e.g.editing.debugging) will not work properly.

Gradle project sync failed . Basic functionality(e.g.editing.debugging) will not work property;

Gradle project sync failed. Basic functionality(e.g.editing.debugging) will not work properly.

Try Again 几次还是这样,是为什么呢?既有可能是在build.gradle中少加了一个maven 仓库地址;

解决如图:

Gradle project sync failed. Basic functionality(e.g.editing.debugging) will not work properly.

重新编译即可;但是有时候编译会很慢,

也可更换阿里云的仓库地址:http://maven.aliyun.com/nexus/content/groups/public/

简单的整理,希望对你有用;点个赞再走