Android sdkmanager不列出已安装的软件包? [英] Android sdkmanager does not list installed packages?
问题描述
我有一个旧安装的"sdk-tools-linux-4333796.zip",位于我的主目录内,位于 /home/myuser/sdk-tools-linux-4333796
I have an old installation of "sdk-tools-linux-4333796.zip", located right inside my home directory at /home/myuser/sdk-tools-linux-4333796
我已经在我的主目录中解压缩了新的SDK下载,该目录创建了文件夹 /home/myuser/tools
.
I have unzipped the new SDK download in my home directory which creates the folder /home/myuser/tools
.
为确保2个安装不会相互干扰,我从路径中注释掉了环境变量,然后重新启动.
To make sure that the 2 installations do not interfere with each other I have commented out environment variables from my path and rebooted.
问题:/home/myuser/tools/bin/sdkmanager --sdk_root=/home/myuser/tools --list
不显示我已安装的软件包(由于已知
The problem: /home/myuser/tools/bin/sdkmanager --sdk_root=/home/myuser/tools --list
doesn't show my installed packages (I use "--sdk_root" due to a known bug).
我已经坚持了两天,非常感谢至少有人通过发表评论确认该行为的人.我已经搜索了所有与Google相关的结果,但绝对没有人举报此事.
I'm stuck on this since 2 days and would really appreciate someone at least confirming that behaviour by leaving a comment. I have searched through all related google results but there's absolutely noone reporting this.
推荐答案
我不敢相信,我在在这里找到答案了一个>.非常感谢李静!
I cannot believe it, I found the answer right here. Thank you so much Jing Li!
因此,基本上,您要做的是将在解压缩后得到的工具"文件夹放入名为"cmdline-tools"的文件夹中(到底怎么知道……!?).然后,该"cmdline-tools"文件夹的路径就是您的"--sdk_root"参数.请记住,由于当时的一个错误(2020年4月),我正在使用"--sdk_root",希望很快不再需要所有这些.我已安装的软件包已列出.
So basically what you have to do is put the "tools" folder that you get after unzipping inside a folder named "cmdline-tools" (how on earth would you know... !?). And then later the path to that "cmdline-tools" folder is your "--sdk_root" parameter. Keep in mind that I'm using "--sdk_root" due to a bug at the time (april 2020), hopefully soon all of this is not needed anymore. My installed packages are listed now.
这篇关于Android sdkmanager不列出已安装的软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!