android - 如何在 Linux 服务器(Ubuntu)上安装 Android 命令行工具

标签 android android-studio ubuntu android-ndk

我需要apkanalyzer对于我在 Docker 中运行的服务器应用程序。有谁知道如何在没有基于 GUI 的 Android Studio 的情况下获取 apkanalyzer?如果是,请问如何安装,有没有apt-get输入方式得到它?

最佳答案

从这里下载命令行工具的 linux 发行版

Download Android official command line tools

然后将其上传到您的服务器并解压缩 zip 文件,然后打开解压缩文件的 tools/bin/文件夹

cd <extracted-folder>/tools/bin/

现在运行
sudo ./apkanalyzer [global-options] subject verb [options] apk-file [apk-file2]

关于android - 如何在 Linux 服务器(Ubuntu)上安装 Android 命令行工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51803358/

相关文章:

Android studio 添加 Java 8 config 报错 "Could not get unknown property"

apache - 无法在 Ubuntu 20.04 上安装 Apache2

ubuntu - 如何彻底卸载TensorFlow?

android - RecyclerView 中的 ArrayList 大小为零且无数据显示

android - 更新到 Android Studio 3.6 后,应用程序在运行时崩溃

c - 你如何在 Ubuntu 上编译 OpenGL 程序?

android - 确定点是否在多边形中

android - 来自/root/.pub-cache/hosted/pub.dartlang.org 包的 Flutter 调试编译错误

java - 尝试在 fragment 选项卡中添加 map 时出错

android - INSTALL_FAILED_USER_RESTRICTED : android studio using redmi 4 device