如何从命令行检查Android开发人员工具版本? [英] How to check the Android developer tools version from the command line?

查看:304
本文介绍了如何从命令行检查Android开发人员工具版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检索ADT版本以生成一些系统报告。

I'm trying to retrieve the ADT version to generate some system reports.

如何使用以下命令检查系统上安装的android开发人员工具的版本

How can I check the version of the android developer tools installed on the system using the command line?

推荐答案

工具的各个部分将其修订号保存在文件中

Various parts of the tools save their revision number in files

例如

cat /android/sdk/platform-tools/source.properties | grep Pkg.Revision
cat /android/sdk/tools/source.properties | grep Pkg.Revision

构建工具本身位于版本目录中,因此您可以通过

The build tools themselves are placed in versioned directories, so you can find them via

ls /android/sdk/build-tools/

这篇关于如何从命令行检查Android开发人员工具版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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