0
votes

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

I installed Android Studio and updated everything (3.2.1) , but whenever I create new project I get these 3 errors :

Failed to resolve: com.android.support:appcompat-v7:28.0.0

Failed to resolve: com.android.support.constraint:constraint-layout:1.1.3

Failed to resolve: com.android.support.test:runner:1.0.2

What's wrong?

Thanks in advance

3

3 Answers

1
votes

You might need a Proxy to achieve a successful Gradle sync! Because repositories are restricted to access from IRAN. Also you can use Shecan.ir and set your dns to the ip from this site.

If it was't about your proxy access! please share complete gradle & error here

0
votes

Please check if your build.gradle(Project) looks like this enter image description here

and if not, try to change change gradle version to be as same as on this photo. Hope this help

0
votes

i found some way for android studio 4.2

check bottom left step 1 : find build step 2 : you will get message sync error step 3 : message will say to install missing gradle step 4 : install it

and done , its work for me