Emulate specific Android version

妖精的绣舞 提交于 2020-01-16 04:43:12

问题


I have a app released but im receiving some bug from specify Android version - 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.

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

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


回答1:


I just figured it out !!

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

  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.



来源:https://stackoverflow.com/questions/34990149/emulate-specific-android-version

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