Hi Guys, I saw most of the people here is forum encounters a new compile error after the Android Studio update. Afters many hours & searching online I figure out how it can be resolved. *Sorry for my English lol Compile Error Looks Just Like This: STEP 1: STEP 2: STEP 3: STEP 4: STEP 5: BOOOM ** Apk is working fine on device
I still have not solved the problem. The pictures in the first message do not appear. Can someone please reload it? Help please !!!
Thank you so very very much. I work 2 days. There's no place I'm not looking. Now I could picture the pictures and solve the problem. I appreciate you @Androdev
@Andy Issue In the past few weeks some Google Android libraries on jcenter have gone missing, causing errors like yours. jcenter's maven-metadata.xml is still valid and contains versions which is causing gradle to assume the listed files are there and will try to download them without falling back to https://maven.google.com/. Even if you have this or google() next in your build.gradle, under jcenter(). Fix In your root build.gradle make sure google() is before jcenter(). Code: repositories { google() jcenter() } In most projects you will have to update this in 2 spots. buildscript { repositories { google() jcenter() } } allprojects { repositories { google() jcenter() } } Note: Use maven { url "https://maven.google.com" } instead of google() if your Gradle version is less than 4.0.
I've mentioned elsewhere, if you delete the gradle cache it should clear this up. Try to delete the gradle cache folder "~/.gradle/caches" then do a clean export and try to build with Android Studio. I have not seen this issue at all, so it is definitely a local for some people.