Ankur
Ankur

Reputation: 819

java.security.NoSuchAlgorithmException while building a simple android app using Android Studio

I downloaded the Android Studio and trying to build a simple Login Activity. But the Make Project fails with this error.

Environment: Windows 7 64 bit

Gradle: trouble writing output: java.security.NoSuchAlgorithmException: SHA-1 MessageDigest not available

FAILURE: Build failed with an exception.


I have made sure the Gradle zip was downloaded and installed properly

Any hints what else should I check for?

Upvotes: 1

Views: 1472

Answers (1)

Ankur
Ankur

Reputation: 819

I was using IBM JDK. Switching to Sun/Oracle JDK fixed the problem.

Upvotes: 1

Related Questions