Android sdkmanager does not list installed packages?

て烟熏妆下的殇ゞ 提交于 2020-04-30 07:19:47

问题


I have an old installation of "sdk-tools-linux-4333796.zip", located right inside my home directory at /home/myuser/sdk-tools-linux-4333796

I have unzipped the new SDK download in my home directory which creates the folder /home/myuser/tools.

To make sure that the 2 installations do not interfere with each other I have commented out environment variables from my path and rebooted.

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).

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.


回答1:


I cannot believe it, I found the answer right here. Thank you so much Jing Li!

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.



来源:https://stackoverflow.com/questions/61429994/android-sdkmanager-does-not-list-installed-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!