Gradle says that build failed because of volley library - android-studio

Today when I run my app on android studio has turned out this error:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not resolve com.mcxiaoke.volley:library:1.0.+.
Required by:
NewOferSalud:app:unspecified
> Failed to list versions for com.mcxiaoke.volley:library.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/mcxiaoke/volley/library/maven-metadata.xml.
> Could not GET 'https://jcenter.bintray.com/com/mcxiaoke/volley/library/maven-metadata.xml'.
> peer not authenticated
I do not understand what happened because I have not touched anything volleyball and previously worked. Any ideas?

I got the same error.
keep it connected to internet while compiling.
Or download the jar file.
For more reference, see this.
Does Android studio need internet connection to build project

Related

how do i solve this Build failed in adroid studio?

I keep getting Build failed each time i try to run my app in android studio.
here is what i get each time i run the app
Execution failed for task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Could not resolve com.android.tools.build:aapt2:3.6.3-6040484.
Required by:
project :app
> No cached version of com.android.tools.build:aapt2:3.6.3-6040484 available for offline mode.
> No cached version of com.android.tools.build:aapt2:3.6.3-6040484 available for offline mode.
Please can somebody help me? thanks
Maybe you should try to disable gradle offline mode and try again

After Android Studio update. Could not parse POM, Could not resolve all files for configuration ':app:_internal_aapt2_binary'

Hello I've been looking to other similar questions about this problem but none has helped me so far, after I updated to android studio to the new version 3.6.2 I have this error when I try to run any project.
Run info:
Execution failed for task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Could not resolve com.android.tools.build:aapt2:3.6.2-6040484.
Required by:
project :app
Could not resolve com.android.tools.build:aapt2:3.6.2-6040484.
Could not parse POM https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.6.2-6040484/aapt2-3.6.2-6040484.pom
Content is not allowed in prolog.
Before the update the project was able to build now none of my projects build.
I tried invalidate cache and restart, I checked that I was not running in offline mode. still have the same failure. Any idea whay this could be and how I could fix it?
if you have problem with gradle
change your android stadio version to 3.6.2 or lower
file>project Strcture>
change to 3.6.2 and OK
I fixed the Error by going to my username and deleting .gradle, .AndroidStudio3.6 and .AndroidStudio3.5 folders. after I restarted android studio to download the folders again and resetting them. It worked.

Gradle Build Failed after updating android studio from 3.6.1 to 3.6.2

I have recently updated my ide and when I tried to run my old code that I have written before updating ide, it started showing a message that is below:
FAILURE:Build failed with a exception.
What went wrong: Execution failed for the task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Could not resolve com.android.tools.build:appt2:3.6.2-6040484. Required by:
project :app
No cached version of com.android.tools.build:appt2:3.6.2-6040484 available for offline mode.
No cached version of com.android.tools.build.appt2:3.6.2-6040484 available for offline mode.
So what's the problem in it and one more thing is that I have enabled the toggle offline mode and even after connecting to the network it's not running and showing the same message.
Plz reply soon.

While creating project in Android studio, Gradle sync failing due to this below mentioned error:

After Android Studio(3.4 and 3.2) installation I have tried to create a project. I am getting this error:
Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.31/kotlin-stdlib-jdk8-1.3.31.pom'. Received status code 407 from server: blank
Enable Gradle 'offline mode' and sync project
I have set proxy settings in File->settings and gradle properties and Connection successful. I have tried many things through settings still Not working.

Android Studio Gradle Peer not authenticated

With Android Studio 1.2.2, I am unable to build with gradle with the following message:
Error:A problem occurred configuring root project 'android'.
A problem occurred configuring project ':CordovaLib'.
Could not resolve all dependencies for configuration ':CordovaLib:classpath'.
Could not resolve com.android.tools.build:gradle:1.0.0+.
Required by:
android:CordovaLib:unspecified
Could not resolve com.android.tools.build:gradle:1.0.0+.
Failed to list versions for com.android.tools.build:gradle.
Unable to load Maven meta-data from https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml.
Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml'.
peer not authenticated
I tried downloading gradle 2.4 and setting the gradle distribution locally, but still did not help.
Also, making the following change in the build file did not work.
jcenter {
url "http://jcenter.bintray.com/"
}
How can this be resolved?

Resources