2

My project was working fine yesterday and today i'm getting the error below. please Help.

Suluuboi
  • 69
  • 9
  • maybe you are change something in your gradle file.share it if you can – Ali Khaki Oct 23 '18 at 14:47
  • app.gradle or build.gradle ???? – Suluuboi Oct 23 '18 at 16:06
  • build.gradle Module app – Ali Khaki Oct 23 '18 at 16:29
  • buildscript { repositories { jcenter() maven { url "https://maven.google.com" } } dependencies { } } allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } project.ext { defaultBuildToolsVersion="25.0.2" defaultMinSdkVersion=19 defaultTargetSdkVersion=26 defaultCompileSdkVersion=26 } } task clean(type: Delete) { delete rootProject.buildDir } – Suluuboi Oct 23 '18 at 17:18
  • is there a better way I can send it through??? – Suluuboi Oct 23 '18 at 17:19
  • 2
    try this allprojects { repositories { maven { url "maven.google.com" } jcenter() } } – shivam Oct 23 '18 at 18:10
  • Thanks a lot Ghost. That did the trick. how does one up vote this answer??? – Suluuboi Oct 23 '18 at 19:21
  • It's a pain to manually update build.gradle files since cordova steps on those. Check this for other options: https://stackoverflow.com/a/52485267/6599076 – BRass Oct 24 '18 at 18:52

2 Answers2

0

Haven't you update your gradle recently? I've been also getting some strange issues there. Try to change the distribution url in your gradle-wrapper.properties file. Try this: distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip

Hanna
  • 71
  • 5
  • Unzipping C:\Users\MXXM\.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip to C:\Users\MXXM\.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv Exception in thread "main" java.util.zip.ZipException: error in opening zip file – Suluuboi Oct 23 '18 at 17:12
  • I have the same issue and did not update gradle. At 8am EST we had a Jenkins build pass, and at 3PM EST, the same branch failed. So in the 7 hour period it appears this kicked up again. – abuani Oct 24 '18 at 12:51
0

https://issuetracker.google.com/issues/80362794 Looks like known issue for jcenter

Hanna
  • 71
  • 5