我尝试在CentOS下启动Android Studio,然后出现了一些消息
Exception in thread "main" java.lang.InternalError: internal error: SHA-1 not available.
at sun.security.provider.SecureRandom.init(SecureRandom.java:108)
at sun.security.provider.SecureRandom.<init>(SecureRandom.java:79)
at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:198)
at java.security.SecureRandom.<init>(SecureRandom.java:162)
at java.util.UUID$Holder.<clinit>(UUID.java:96)
at java.util.UUID.randomUUID(UUID.java:142)
at com.intellij.internal.statistic.analytics.StudioCrashDetection.start(StudioCrashDetection.java:46)
at com.intellij.idea.Main.main(Main.java:82)
Caused by: java.security.NoSuchAlgorithmException: SHA MessageDigest not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.MessageDigest.getInstance(MessageDigest.java:167)
at sun.security.provider.SecureRandom.init(SecureRandom.java:106)
... 7 more
我确认我安装的是来自Oracle jdk-8u161-linux-x64.rpm的JDK,JAVA_HOME =“/ usr / java / jdk1.8.0_161”JRE_HOME =“/ usr / java / jdk1.8.0_161 / jre, jsse.jar存在于jre / lib /中。 还有什么可能是错的?
答案 0 :(得分:1)
通过安装另一个版本的Android Studio解决了这个问题。我遇到的问题是android-studio-ide-171.4443003-linux,我用android-studio-ide-173.4670197-linux.zip替换它,问题就消失了。它既没有Android Studio 2的问题,也希望有人能解释一下。