java.security.NoSuchAlgorithmException同时建立使用Android Studio的一个简单的Andr​​oid应用 [英] java.security.NoSuchAlgorithmException while building a simple android app using Android Studio

查看:243
本文介绍了java.security.NoSuchAlgorithmException同时建立使用Android Studio的一个简单的Andr​​oid应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了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


摇篮:
麻烦写输出:java.security.NoSuchAlgorithmException:SHA-1消息摘要不可用


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

失败:建立失败,一个异常

FAILURE: Build failed with an exception.


  • 出了什么问题:
    执行失败的任务:MyApp的:dexDebug。

  • What went wrong: Execution failed for task ':MyApp:dexDebug'.

运行C:\\ Program Files文件(x86)的\\ Android的\\ Android的工作室\\ SDK \\集结TOOLS \\ Android的4.2.2 \\ dx.bat失败。见输出

Running C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.2.2\dx.bat failed. See output

尝试:

与--stacktrace选项获取堆栈跟踪运行。与--info或--debug选项来运行,以获得更多的日志输出。

我已经确定的摇篮拉链被下载并安装正确

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

任何提示还有什么我应该检查?

Any hints what else should I check for?

推荐答案

我用的是IBM JDK。切换到太阳/ Oracle的JDK解决了这一问题。

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

这篇关于java.security.NoSuchAlgorithmException同时建立使用Android Studio的一个简单的Andr​​oid应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆