本文介绍了如何降级Android模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Android Studio的Android模拟器时,我发现在Java WebView小部件中显示支持WebGL的复杂图形网页时出现问题().但是我只能使用Android Emulator 27.1.12-4623001重现该问题.对于运行Android Emulator 26.1.4-4266726的同事来说,它运行得很好.

With Android Studio's Android Emulator I'm seeing a problem displaying a complex WebGL-enabled graphics web page in a Java WebView widget (PixiJS demos appear blank in WebView on Android emulator). But I can only reproduce the problem with Android Emulator 27.1.12-4623001. It runs fine for my colleagues running Android Emulator 26.1.4-4266726.

如何将Android Emulator从27.1.12-4623001降级到26.1.4-4266726?我使用的是Android Studio 3.0.1(尽管我的一位同事也是如此,但她的Android Studio仍然具有Android Emulator 26.1.4-4266726.我也在Mac上使用High Sierra.

How can I downgrade my Android Emulator from 27.1.12-4623001 to 26.1.4-4266726? I use Android Studio 3.0.1 (so does one of my colleagues though but her Android Studio still has Android Emulator 26.1.4-4266726. I'm also on Mac with High Sierra.

我查看了 Android模拟器发行说明页面,但我没有请参阅有关如何降级旧版本的说明.我确实尝试降级Android Studio 本身,但是即使安装了Android Studio 2.2.3,仿真器仍为27.1.12-4623001.我甚至通过遵循如何完全卸载Android Studio来删除Android Studio 3.0.1..

I looked on the Android Emulator Release Notes page but I don't see instructions on how to downgrade old versions. I did try downgrading Android Studio itself but even when I installed Android Studio 2.2.3, the emulator was still 27.1.12-4623001. I even deleted Android Studio 3.0.1 by following How to completely uninstall Android Studio?.

我具有什么版本的Android模拟器?

三种方法:

  1. 启动仿真器,在右侧面板上点击"...",然后单击帮助">关于.
  2. 转到在Android Studio>偏好设置"中,搜索"Android SDK",然后单击"SDK"工具",然后滚动到Android模拟器.
  3. 在Mac上,转到终端并运行~/Library/Android/sdk/emulator/emulator -version
  1. Launch the emulator, tap "..." on the right-hand side panel, click Help >About.
  2. Go toAndroid Studio > Preferences, search for "Android SDK", click "SDKTools", and then scroll to Android Emulator.
  3. On Mac, go to Terminal and run ~/Library/Android/sdk/emulator/emulator -version

推荐答案

Google支持人员说我可以下载旧的Android Emulator版本,如下所示:

Google support said I could download old Android Emulator versions as follows:

http://dl.google.com/android/repository/emulator-darwin-4266726.zip (适用于Mac) http://dl.google.com/android/repository/emulator-windows -4266726.zip http://dl.google.com/android/repository/emulator-linux -4266726.zip

http://dl.google.com/android/repository/emulator-darwin-4266726.zip (for Mac)http://dl.google.com/android/repository/emulator-windows-4266726.ziphttp://dl.google.com/android/repository/emulator-linux-4266726.zip

如果要下载以前的任何内部版本,则只需将#(在major.minor.patch-#中的一个)与darwin/windows/linux一起放入即可.

Basically, just put the # (the one in major.minor.patch-#) along with darwin/windows/linux if you'd like to download any previous build.

要在我的Mac计算机上安装,请执行以下操作:

To install on my Mac computer, I did as follows:

  1. 下载 http://dl.google.com/android/repository/emulator-darwin-4266726.zip 通过Chrome进入〜/Downloads

  1. Download http://dl.google.com/android/repository/emulator-darwin-4266726.zip via Chrome into ~/Downloads

备份主仿真器目录:mv ~/Library/Android/sdk/emulator ~/Downloads/emulator-backup

替换主仿真器目录:mv ~/Downloads/emulator ~/Library/Android/sdk/

重新启动Android Studio

Restart Android Studio

之后,Android Emulator版本降级为26.1.4-4266726.

After that, the Android Emulator version was downgraded to 26.1.4-4266726.

这篇关于如何降级Android模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 21:12