android tools是什么,Android SDK中究竟是什么"tools.jar"?

博主在尝试使用LibGDX构建项目时遇到任务执行失败,错误提示缺少tools.jar。tools.jar通常包含在Android SDK中,但博主在SDK管理器中未找到。尽管已安装多个SDK工具包,但仍然无法解决问题。博客探讨了tools.jar的来源和可能的解决方案,指出它可能是Android开发所必需的,并寻求对此问题的深入理解。目前,项目使用Gradle构建,且SDK配置已满足Android Studio的构建需求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

无论如何,我遇到了一个问题,每次我尝试构建它失败时都会出现单个错误消息:

任务执行失败:核心: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中构建成熟的应用程序.

除非我遗漏了一些难以找到适当解决方案的信息,否则请不要回答这个问题

README for preparing SD/MMC/Micro-SD CARD for booting Android Pre-Requesites -------------- 1) Need to have an SD/MMC/Micro-SD card with atleast 2GB of size. 2) The script needs to be invoked from ubuntu linux machine 8.04 or above. 3) User needs to have sudo privileges. What script will do ------------------- The mkmmc-android.sh partitions the MMC/SD card into three partiions namely boot, rootfs and data. The script will then put the boot images on boot partition and extracts the android rootfs-rootfs_*.tar.bz2 to rootfs partition. Finally the script will copy the Media clips to the data partition and START_HERE folder to boot partition. How to invoke the script ------------------------ There are three ways of invoking this script. 1) Command: sudo ./mkmmc-android <device> <MLO> <u-boot.bin> <uImage> <boot.scr> <rootfs tar.bz2 > <Media_Clips> <START_HERE Location> Example: sudo ./mkmmc-android /dev/sdc MLO u-boot.bin uImage boot.scr rootfs.tar.bz2 Media_Clips Details: In this case, the script will take Boot Images (MLO,u-boot.bin, uImage and boot.scr) Root Filesystem tarball, Media Clips and START_HERE folder as arguements. The script will then put the boot images on boot partition, extract the android rootfs-rootfs_*.tar.bz2 to rootfs partition. Finally the script will copy the Media clips to the data partition and START_HERE folder to boot partition. 2) Command: sudo ./mkmmc-android <device> <MLO> <u-boot.bin> <uImage> <boot.scr> <rootfs tar.bz2 > Example: sudo ./mkmmc-android /dev/sdc MLO u-boot.bin uImage boot.scr rootfs.tar.bz2 Details: In this case, the script will take Boot Images (MLO,u-boot.bin, uImage and boot.scr) and Root Filesystem tarball as arguements. The script will then put the boot images on boot partition, extract the android rootfs-rootfs_*.tar.bz2 to rootfs partition. The data partiton will be left empty in this case. 3) Command: sudo ./mkmmc-android.sh <device> Example: sudo ./mkmmc-android.sh /dev/sdc Details: In this case, the script will assume default locations for BootImages, Root Filesystem, Media_Clips and START_HERE. This command is equivalent to the following sudo ./mkmmc-android /dev/sdc Boot_Images/MLO Boot_Images/u-boot.bin Boot_Images/uImage Boot_Images/boot.scr Filesystem/rootfs.tar.bz2 Media_Clips START_HERE If you are in a particular Board Specific Directory, extracted from DevKit Release, then you can prepare the sd card by executing sudo ./mkmmc-android.sh <device>, to prepare sd card.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值