Here's the full response with the additional line included:
First, check your environment variables to ensure the paths are set correctly:
Check Environment Variables:
Open the terminal and run:
echo $JAVA_HOME
This should display the path to Java 17 (e.g., C:\Program Files\Java\jdk-17
on Windows).
If you're on Windows, check the JAVA_HOME
path in the Environment Variables section:
JAVA_HOME
points to the Java 17 path (C:\Program Files\Java\jdk-17
) and not Java 21.Verify Path Variable:
Path
environment variable includes JAVA_HOME\bin
.Invalidate Gradle Cache:
./gradlew --stop
./gradlew clean
Restart the Terminal or IDE:
Verify Gradle JDK Configuration:
After these steps, running ./gradlew signingReport
should ideally pick up the Java 17 path and generate the SHA key.
If this answer helps you, please give it a like!