I am using retrofit 2 library for network calls.Project is not builing up even after adding dependencies. I have attached the screenshot.
Asked
Active
Viewed 363 times
0
-
make sure u are connected to internet before u resolve, also clarify the versions of repo, some might have been removed, or in compatible – Niraj Sanghani Nov 01 '17 at 05:48
-
is it checked?? File->Settings->Gradle. Look at the "Offline work" inbox, if it's checked u uncheck and try to sync again. – Ronak Thakkar Nov 01 '17 at 06:12
-
1Show your main build.gradle – Rohan Pawar Nov 01 '17 at 06:45
-
@RonakThakkar it is unchecked and have tried to sync it multiple times – Bhavika Solanki Nov 01 '17 at 07:06
-
@RohanPawar I have added the screenshot.. – Bhavika Solanki Nov 01 '17 at 07:08
2 Answers
0
In your Fame-Circle
's project level build.gradle
file (The recently added screenshot),
add:
maven { url 'https://maven.google.com' }
which should now look like:
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
}

Sneh Pandya
- 8,197
- 7
- 35
- 50
0
Try to add below line inside your Frame-Circle main gradle file
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://maven.google.com" }
}
}

Rohan Pawar
- 1,875
- 22
- 40