模拟特定的Android版本 [英] Emulate specific Android version

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

问题描述

我发布了一个应用,但我从指定的Android版本-5.0.2中收到一些错误

I have a app released but im receiving some bug from specify Android version - 5.0.2

如何模拟特定的Android版本? Api 21代表版本5/5.0.1/5.0.2,但我需要专门测试版本5.0.2.

How can I emulate specific Android version? Api 21 represents versions 5 / 5.0.1 / 5.0.2, but i need to specifically test version 5.0.2.

在Android Emulator上,我没有此版本的选项,在Genymotion上也没有.有什么想法吗?

On Android Emulator i don't have the option for this version, neither on Genymotion. Any ideas?

编辑:Android sdk管理器仅具有5.0.1和5.1.1版本,而没有5.0.2.

Android sdk manager only has versions 5.0.1 and 5.1.1, but not 5.0.2.

推荐答案

我刚刚想通了!

让我在这里为遇到相同问题的每个人提供步骤(此解决方案适用于您可能需要的不同版本):

Let me put here the steps for everyone who is having the same problem (this solution works for different version you might need):

  1. 从以下位置下载要运行的图像: Nexus设备的工厂图像
  2. 使用所需版本的Android Studio创建模拟器(对于我的情况为5.0.1)
  3. 打开文件夹.android/avd/MyEmulatorName/,然后粘贴在点1下载的.img文件.
  4. 从命令行或Android Studio启动模拟器
  5. 模拟器完全启动后,您可以检查Android版本,它应与您从1)下载的映像相对应.
  1. download the image you want to run from: Factory Images for Nexus Devices
  2. Create an emulator using Android Studio with the version you need (for my case 5.0.1)
  3. Open the folder .android/avd/MyEmulatorName/ and paste the .img file downloaded in point 1
  4. Start emulator from command line or from Android Studio
  5. Once the emulator fully starts you can check the Android version, it should corresponde to the image you downloaded from 1).

This link was my guideline although some steps didn't work for me, like creating the emulator through console.

这篇关于模拟特定的Android版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆