什么是“tools.jar”在Android SDK中? [英] What exactly is "tools.jar" in the Android SDK?

查看:178
本文介绍了什么是“tools.jar”在Android SDK中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我一直试图在LibGDX中建立一个项目大约10个小时。如果您不熟悉,LibGDX是您在开始时指定项目目录的平台之一,以及任何所需的SDK,然后当您准备开始编码时,它会为您生成一个项目。



无论如何,我一直有一个问题,我每次尝试构建它时都会失败,并显示一条错误消息:


执行任务失败:core:compileJava。


找不到tools.jar



我猜tools.jar是Android SDK中的一个包,因为这是唯一需要构建,它不要求JRE甚至Java SDK。只是Android SDK。

我一直在寻找SDK管理器,我已经安装了所有标记为Android-SDK工具,Android-SDK平台工具和Android SDK构建工具,但没有其他任何内容包含tools.jar,我正在寻找一些关于此主题的光芒,因为它是一个非常灰色的区域。我想知道这个.jar文件的名称和它的名称。是否可以从Android SDK安装?



以前的类似问题只适合狭窄的情况,如果有人可以提供对tools.jar的全面描述包对我和其他所有需要它的第三方android IDE中的用户来说都是非常有利的。



为了记录,它使用Gradle和我的当前SDK已经足够完善,可以在Android Studio中构建完整的应用程序。



请不要回答带有问题的问题,除非我有遗漏了一些很可能找到适当解决方案的信息。尝试从%复制tools.jar,然后从%中复制tools.jar。 JAVA_HOME \lib Android Studio \lib


So, I've been trying to build a project in LibGDX for about 10 hours now. In case you'r unfamiliar, LibGDX is one of those platforms where you specify a project directory at the start, along with any required SDKs and then when you're ready to start coding it will generate a project for you.

Anyway, I've been having a problem where every time I try to build it fails with the single error message:

Execution failed for task :core:compileJava.

Could not find tools.jar

I'm guessing "tools.jar" is a package within the Android SDK, as this is the only repository needed to build, it doesn't ask for a JRE or even the Java SDK. just the Android SDK.

I have been looking in the SDK manager, I have installed all of the packages labelled "Android-SDK Tools", "Android-SDK Platform Tools" and "Android SDK Build Tools" but there is nothing else that includes "tools.jar", I am looking for some light shed on this topic as it is a very grey area. I would like to know where this .jar file comes from and what exactly it includes. Can it be installed from the Android SDK?

There have been similar questions like this before which only fit narrow situations, If someone could provide a holistic description of the tools.jar package it would benefit a great deal for me and everyone else that needs it in their 3rd-party android IDEs.

For the record, it's building with Gradle and my current SDK is well-equipped enough to build full-fledged apps in Android Studio.

Please don't answer this question with a question unless I have left out some information that is dire to finding an adequate solution

解决方案

Try copying tools.jar from %JAVA_HOME\lib to Android Studio\lib

这篇关于什么是“tools.jar”在Android SDK中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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