Android Studio Gradle Peer not authenticated - android-studio

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?

Related

Error in Android Studio: Manifest merger failed with multiple errors

Screenshot of Android Studio
How do I resolve the an error in Android Studio as below: Caused by: java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs.
I have attached an Image with my question please see it once and Help me resolve my error.
Check your gradle files. I would suggest you to create new project and copy content in gradle to existing project and add required dependencies. Error is usually caused by incompatible version of java. Download latest Android studio and set jdk to java 17.
Check this link

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.

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.

Problems with realm after gradle update

After update AndroidStudio to 3.1 and gradle to 3.1.0 I cannot build my project. I got this error:
Could not determine artifacts for io.realm:realm-android-library:5.0.0: Skipped due to earlier error
I have already tried:
Clean/Rebuild project
Invalidate cache and restart
gradle clean assemble --refresh-dependencies
What should I do to fix this error?

Gradle says that build failed because of volley library

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

Resources