且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不安装Android Studio的情况下安装GUI android SDK管理器

更新时间:2023-01-15 09:03:08

Android SDK GUI可以保留

我很高兴地通知社区,在使用大多数用户习惯的传统GUI的同时,仍然可以使用Android SDK来实现功能齐全的解决方法. 我很高兴地说,GUI会保留在这里(尽管在SDK 26中已被正式切断)

Android SDK GUI is here to stay

I am glad to inform the community that there is still a fully functional workaround to use the Android SDK whilst utilising the traditional GUI that most users are accustomed to. I am pleased to say that the GUI is here to stay (despite having been officially cut off sometime in SDK 26)

如果您是从头开始,建议您先阅读这篇文章:如何在不下载Android Studio的情况下下载Android SDK?

If you are starting from scratch I suggest you go through this post first: How do I download the Android SDK without downloading Android Studio?

最重要的是,您必须首先安装在最新的SDK安装程序版本中找到的基本软件包(即sdk工具,平台工具,GUI sdk和AVD管理器等)正在从头开始创建,否则,如果您已经可以正常安装sdk,则可以跳过此步骤.

Here the most important thing is that you must first install the base packages (i.e sdk tools, platform-tools, GUI sdk and AVD manager etc) found in the last installer version of SDK if you are starting form scratch, otherwise you can skip this step if you already a working sdk installation.

我发现,即使您更新"SDK工具",您仍然可以获得的最新版本始终是25.x.x,这本身就存在问题,因为它不允许您运行API级别26、27或28 ,正如我在另一个网站上的帖子中所指出的:无法在模拟器上启动Android 8.0 Oreo:解密失败"

I discovered that even if you update the "SDK tools", the latest version that you can get is always 25.x.x which has problem on its own as it doesn't allow you to run API levels 26, 27 or 28, as I pointed out in my post on another site: Can't start Android 8.0 Oreo on emulator: "Decryption unsuccessful"

经过数周的调查,我发现这是一种过时的仿真器,除非您运行Android Studio(这与我们要实现的目标相反),否则不再提供该仿真器

After some weeks of investigation I figured out, this was something to do the outdated emulator which is no longer provided unless you running Android Studio (which is contrary to what we want to achieve)

从事物的外观看,仿真器(最初是分布式的) 作为Android SDK工具的一部分)自版本开始不再更新 25.2.3

From the looks of things it seems the emulator (originally distributed as part of the Android SDK Tools) is no longer updated since version 25.2.3

因此,解决方法涉及仿真器工具的"手动/强制升级".目前,我已成功升级到版本27.3.8(并顺利运行Android 9).

Thus the workaround involves a "manual/forced upgrade" of emulator tools. Currently I successfully upgraded to version 27.3.8 (and running Android 9 smoothly).

解决方法

为简化说明,首先请确保基本软件包仍然完好无损,然后按以下步骤升级模拟器:

To shorten the story, firstly make sure the base packages are still intact, and upgrade the emulator as follows:

说明

  • 从下面提供的链接中下载最新的(或合适的模拟器)
  • 完成后,解压缩下载的emulator.zip文件并将仿真器程序包解压缩到%USERPROFILE%\Android\android-sdk\tools相关路径(是的,您必须将其合并到该文件夹​​中,因为模拟器没有所有的库和文件)
  • 此后,您的模拟器将更新(在我的情况下为27.3.8):
  • Download the latest (or suitable emulator) from the links supplied below
  • When done, decompress the downloaded emulator.zip file and extract the emulator package to %USERPROFILE%\Android\android-sdk\tools or relevant path (yes you have to merge it into that folder, since the emulator doesn't have all libraries and files)
  • After this your emulator will be updated (to 27.3.8 in my case):

Android SDK管理器(GUI)

现在准备您的AVD(API级别27或28);

Now prepare your AVD (API level 27 or 28);

  • 单击"AVD管理器"可执行文件以打开"AVD设置"对话框.
  • 选择所需的AVD参数,然后单击确定"以创建.

Android AVD管理器

运行新创建的虚拟设备,您应该会很好:

Run the newly created virtual devices and you should be good to go:

  • 选择虚拟设备,然后单击开始;

重要链接

基础和仿真器工具(zip)

Base and Emulator tools(zip)

  1. Android SDK基本安装程序(离线窗口)
  2. >
  3. Linux安装程序(也可以使用wget)
  4. 仿真器版本27.3.8 (Linux最新)
  5. 仿真器版本27.3.8 (Windows最新)
  6. 仿真器27.3.8 (最新的Mac OS)
  7. 仿真器版本26.1.4 (Windows)
  8. 仿真器版本26.1.4 (linux)
  9. 仿真器版本27.1.10 (mac os)
  1. Android SDK base installer (offline windows)
  2. Linux installer (can use wget also)
  3. Emulator version 27.3.8 (linux latest)
  4. Emulator version 27.3.8 (windows latest)
  5. Emulator 27.3.8 (mac os latest)
  6. Emulator version 26.1.4 (windows)
  7. Emulator version 26.1.4 (linux)
  8. Emulator version 27.1.10 (mac os)

更新:添加了最新的模拟器版本

  • Emulator version 28.0.22 (latest linux os latest)

仿真器版本28.0.22 ( Windows OS最新)

Emulator version 28.0.22 (windows os latest)

仿真器版本28.0.22 ( mac os最新)

Emulator version 28.0.22(mac os latest)

更新2:较新的模拟器版本

  • Emulator version 29.3.5 (latest linux os latest)

仿真器版本29.3.5 ( Windows OS最新)

Emulator version 29.3.5 (windows os latest)

仿真器版本29.3.5 ( mac os最新)

Emulator version 29.3.5(mac os latest)

特别感谢 androiddev 为Linux提供链接, eaglemt Vladyslav Panchenko 提供了到repos的链接,并且对于macOS链接最重要.

Special thanks to androiddev for providing links for linux, eaglemt and Vladyslav Panchenko for providing the links to repos and mostly important for mac os links.

结论

看来Google可能是出于潜在的安全漏洞,有意决定为Android Studio改用独立Android SDK的GUI,但无论出于何种原因,对于只需要独立软件包的人来说,这听起来都不令人信服...

It seems Google intentionally decide to pull the plug on GUI for standalone Android SDK in favour of Android studio perhaps because of potential security bugs, but whatever the reason,it may not sound convincing for someone just needing the standalone package...