简体   繁体   English

Android SDK 管理器的 GUI 消失了吗?

[英]Is GUI for Android SDK manager gone?

I rarely do something for Android so I'm a bit confused.我很少为 Android 做一些事情,所以我有点困惑。 While back there were two type of installations - Android Studio and just Android SDK.之前有两种类型的安装 - Android Studio 和 Android SDK。 I have IDEA so I don't need Studio.我有 IDEA,所以我不需要 Studio。 Typically I download SDK that have UI tool to download its components.通常我会下载带有 UI 工具来下载其组件的 SDK。

I just got https://dl.google.com/android/repository/tools_r25.2.3-linux.zip and I can't see UI SDK Manager in it.我刚刚得到了https://dl.google.com/android/repository/tools_r25.2.3-linux.zip ,但在其中看不到 UI SDK Manager。 There is bin/sdkmanager shell script.bin/sdkmanager shell 脚本。 But it's kinda inconvenient for my purpose because going through output of --list , copy-pasting packages names and running sdkmanager would take too much time.但这对我来说有点不方便,因为通过--list输出、复制粘贴包名称和运行sdkmanager会花费太多时间。

What's the way of installing this quickly now ?现在快速安装的方法是什么?

PS.附注。 I'm on Ubuntu 16.10 in case it matters.我在 Ubuntu 16.10 上以防万一。

PS2. PS2。 I just tried sdkmanager "platforms;android-25" as per documentation but it gave no output after me agreeing to terms.我刚刚按照文档尝试了sdkmanager "platforms;android-25" ,但在我同意条款后它没有给出任何输出。 Where did it install SDK files?它在哪里安装SDK文件? Did it even install it?它甚至安装了吗? Amazing.惊人的。

Looks like I'm not the only one who had to deal with this idiocy.看来我不是唯一一个不得不面对这种白痴的人。 The way to install it安装方法

  1. Unpack zip to some /parent folder so it has /parent/tools .zip解压到某个/parent文件夹,使其具有/parent/tools I extracted content of zip's tools to /androidsdk and it was mistake.我将 zip tools内容提取到/androidsdk ,这是错误的。 Script couldn't find it.脚本找不到它。
  2. Set ANDROID_HOME to /parent folder.ANDROID_HOME设置为/parent文件夹。
  3. Run /parent/tools/android sdk to see SDK Manager's GUI.运行/parent/tools/android sdk以查看 SDK Manager 的 GUI。

Google, was it hard to leave script that does the above in installation zip so people don't need to waste 40 minutes googling around ?谷歌,是否很难在安装 zip 中留下执行上述操作的脚本,这样人们就不需要浪费 40 分钟的谷歌搜索时间?

Officially GUI is gone, but pleasant people saved the last of it for us: installer_r24.4.1-windows.exe GUI 正式消失了,但好心的人为我们保存了最后一个: installer_r24.4.1-windows.exe

According for thisannouncment Google doesn't intend to support ADT pluging for Eclipse since June 2015, and so as GUI for ADT at all.根据此公告,自 2015 年 6 月以来,Google 不打算支持 Eclipse 的 ADT 插件,因此根本不支持 ADT 的 GUI。 They explain the decision with an entire switching to Android Studio.他们通过完全切换到 Android Studio 来解释这个决定。 There are no links on official Android sources where to download last GUI version, because they find it as having potential security bugs.官方 Android 资源上没有链接可以下载最新的 GUI 版本,因为他们发现它存在潜在的安全漏洞。

So you have chance to download the last saved version, till the link will not be changed.所以你有机会下载最后保存的版本,直到链接不会改变。 If it already happened try to search by tag .如果已经发生,请尝试按标签搜索

Thank to Losin' Me for links:感谢Losin' Me提供链接:

Found on web.archive.orgweb.archive.org 上找到

Late to the party, but you can download v24.4 installer like the good old day here .晚会晚了,但您可以像旧日一样在这里下载 v24.4 安装程序。 It will update itself to v25.x and everything works as expected.它将自己更新到 v25.x,一切都按预期工作。 Also a big ef'u Google.也是一个很大的 ef'u 谷歌。

Update 2021-07 : This tool does not offer build tools version >= 30 and won't show newer packages anymore 2021-07 更新:此工具不提供构建工具版本 >= 30,并且不再显示更新的软件包

Since Android released build tools 25.3.0, they removed android CLI command and replaced it with avdmanager and sdkmanager located inside your $ANDROID_HOME/bin/tools自 Android 发布构建工具 25.3.0 以来,他们删除了android CLI 命令并将其替换为位于$ANDROID_HOME/bin/tools avdmanagersdkmanager

Run this command to get a list of available packages in sdk-style path : sdkmanager --list运行此命令以获取sdk 样式路径中可用包的列表: sdkmanager --list

Run this command to install a specific image: sdkmanager --verbose "system-images;android-19;google_apis;x86"运行此命令以安装特定映像: sdkmanager --verbose "system-images;android-19;google_apis;x86"

From the command line, just type从命令行,只需键入

tools/android sdk

and the usual GUI for the Android SDK will be prompted.并且会提示 Android SDK 的常用 GUI。

Hope this helps希望这可以帮助

If You have Android Studio, you can point your sdk manager in Android Studio to where you just installed your SDK.如果您有 Android Studio,则可以将 Android Studio 中的 sdk 管理器指向刚刚安装 SDK 的位置。 You can manage it from there.你可以从那里管理它。 That's what I had to do.这就是我必须做的。 The command line was so tough for me as I didn't get the full package names when running sdkmanager --list command命令行对我来说sdkmanager --list了,因为我在运行sdkmanager --list命令时没有得到完整的包名

Here is the link for download android sdk with GUI for windows, linux and mac:以下是用于 Windows、Linux 和 Mac 的带有 GUI 的android sdk 下载链接

Uncompressing and put the folder named tools inside androidsdk directory, search for android.bat: it's open GUI in windows.解压后把tools文件夹放到androidsdk目录下,搜索android.bat:windows下是open GUI。

Download packages and develop apps.下载软件包并开发应用程序。

For using with Xamarin, The official Xamarin SDK Manager is now available for Visual Studio 2017 and above.对于与 Xamarin 一起使用,官方Xamarin SDK Manager现在可用于 Visual Studio 2017 及更高版本。 It can be installed from under "Cross Platform Mobile" workload in the Visual Studio Installer.它可以从 Visual Studio 安装程序中的“跨平台移动”工作负载下安装。 It replaces Google's standalone SDK Manager (which was deprecated in version 25.2.3 of the Android SDK Tools package).它取代了 Google 的独立 SDK 管理器(在 Android SDK 工具包的 25.2.3 版中已弃用)。

在工具目录中搜索“android.bat”文件并运行它,SDK 管理器的 GUI 将打开。

I am sorry for bumping a necropost.我很抱歉碰到了一个死尸。 But I have just released a simple Android SDK GUI.但我刚刚发布了一个简单的 Android SDK GUI。 Maybe this little weekend project could save some people from headache of using sdkmanager command line or downloading android-tools twice.也许这个周末的小项目可以让一些人免于使用 sdkmanager 命令行或两次下载 android-tools 的麻烦。

You could check my project at AndroidGUI .您可以在AndroidGUI 上查看我的项目。

Fork as you please or better yet send me PR. Fork as you please 或者更好的还是给我发 PR。 Any help would be very much appreciated.任何帮助将不胜感激。

PS: It would be very useful if somebody could point me to the latest sdklib-*.jar source code. PS:如果有人能指出我最新的 sdklib-*.jar 源代码,那将非常有用。 So that I could interface with Android SDK directly.这样我就可以直接与 Android SDK 交互。

For all Windows users: I just made a "porting" of the old GUI executables...对于所有 Windows 用户:我刚刚“移植”了旧的 GUI 可执行文件......

although porting is a big word, I just changed the executable so it would read andoid_gui.bat instead of android.bat, and added that file and some required libs (although I think only archquery.jar is needed, I also put sdkmanager.jar, sdkstats.jar and sdkuilib.jar; it seems to work even without them so let me know if they are not needed)虽然移植是一个很大的词,但我只是更改了可执行文件,因此它会读取 andoid_gui.bat 而不是 android.bat,并添加了该文件和一些必需的库(虽然我认为只需要 archquery.jar,但我也将 sdkmanager.jar , sdkstats.jar 和 sdkuilib.jar;即使没有它们似乎也能工作,所以如果不需要它们,请告诉我)

Just extract it in the SDK directory解压到SDK目录下即可

Download here 在这里下载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM