---
title: "Gradle “peer not authenticated” error"
canonical_url: "https://www.nutrient.io/guides/android/troubleshooting/gradle-peer-not-authenticated/"
md_url: "https://www.nutrient.io/guides/android/troubleshooting/gradle-peer-not-authenticated.md"
last_updated: "2026-06-09T10:38:40.793Z"
description: "Solutions for common issues and errors in Nutrient Android SDK with debugging tips and workarounds."
---

If you see the following error while trying to [automatically integrate Nutrient using Gradle](https://www.nutrient.io/sdk/android/getting-started.md), it is probably caused by using an outdated JDK (Java Development Kit) inside Android Studio:

```

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.

> Could not download pspdfkit.aar (io.nutrient:nutrient:x.y.z)

 > Could not get resource 'https://my.nutrient.io/maven/io/nutrient/nutrient/x.y.z/nutrient-x.y.z.aar'.
  > Could not GET 'https://my.nutrient.io/maven/io/nutrient/nutrient/x.y.z/nutrient-x.y.z.aar'.
   > peer not authenticated

```

The Nutrient Maven repository requires Gradle to communicate securely using TSL 1.2, which is disabled in JDK versions prior to JDK 8. [See this issue on the JDK bug tracker](https://bugs.openjdk.java.net/browse/JDK-7093640).

You must first [log in to the Nutrient Portal](https://my.nutrient.io/users/sign_in) before accessing the Maven repository.

## How to fix the “peer not authenticated” error

- Download and install JDK 8 for your local development machine. You can find the current version at the [Oracle JDK download page](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).

- Inside Android Studio, open your affected project.
  - Go to File > Project Structure.
  - Click the SDK Location tab.
  - Select your locally installed JDK 8 directory as the JDK location.
    - On macOS: Run `/usr/libexec/java_home --version 1.8` within the terminal, which will output the correct JDK folder.
    - On Windows: Run `for %i in (javac.exe) do @echo. %~$PATH:i` in the command line, and select the correct JDK 8 folder.
  - Confirm your changes by pressing OK.

- Rebuild your project and verify that the error is resolved.
---

## Related pages

- [Multidex](/guides/android/miscellaneous/multidex.md)
- [Abi Set Not Compatible](/guides/android/troubleshooting/abi-set-not-compatible.md)
- [Image size too big](/guides/android/troubleshooting/errors-and-warnings/image-size-too-big.md)
- [Vfy Warnings](/guides/android/troubleshooting/vfy-warnings.md)
- [Out Of Memory Build Error](/guides/android/troubleshooting/out-of-memory-build-error.md)
- [Java Lang Noclassdeffounderror](/guides/android/troubleshooting/java-lang-noclassdeffounderror.md)

