Android Studio中无法找到的tools.jar [英] Android Studio Can't Find tools.jar

查看:515
本文介绍了Android Studio中无法找到的tools.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的搜索我还没有找到一个答案,我的问题。我已经安装了JDK,并甚至在使用的Andr​​oid Studio的这台机器上。但现在,当我尝试运行它,它给我的错误:

In my searching I haven't found an answer to my issue. I have installed the JDK, and have even used Android Studio before on this machine. But now, when I try to run it, it is giving me the error:

JDK要求:的tools.jar似乎无法在Studio类路径中。
请确保JAVA_HOME指向JDK,而不是JRE。

"JDK Required: 'tools.jar' seems to be not in Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE."

我已经检查了我的JDK的bin文件夹,它不会出现在那里的tools.jar'文件,这似乎不可思议给我,但环顾四周,我发现的tools.jar lib文件夹中。所以,相反,我添加libs文件夹将JAVA_HOME变量为好。这并没有帮助的。

I have checked my jdk's bin folder, and it doesn't appear to have a 'tools.jar' file in there, which seems weird to me, but looking around I found tools.jar in the lib folder. So, instead I added the libs folder to the JAVA_HOME variable as well. This didn't help either.

任何人都可以向我解释如何让Android的工作室停止抱怨?我只想移动jar文件结束了,但感觉就像是hackish的。我到处看使我相信,这应该真的只是工作,只要我有我的JAVA_HOME变量设置(这是我做的,顺便说一句:/home/andrew/jdk1.7.0_45/bin/:/home/andrew/jdk1 .7.0_45 / lib目录)。

Can anyone explain to me how to get Android Studio to stop complaining? I want to just move the jar file over but feel like that is hackish. Everywhere I read leads me to believe that this should really just work as long as I have my JAVA_HOME variable set (which I do, by the way: /home/andrew/jdk1.7.0_45/bin/:/home/andrew/jdk1.7.0_45/lib).

推荐答案

设置JAVA_HOME到

Set JAVA_HOME to

/home/andrew/jdk1.7.0_45/

代替。

这篇关于Android Studio中无法找到的tools.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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