# WFH Android test ## 起因 其他模擬器沒有多種機種可以選擇,因此可以的話希望能使用 Andorid Studio 的 AVD Manager AVD Manager 有支援 Pixel 的各種機型,還有一些比較舊的機種也都可以使用 ## Step 1. Download the Andorid Studio on mac https://developer.android.com/studio 2. Install Android Studio(依據這部影片到 4:50 秒) https://www.youtube.com/watch?v=ri90tcQL-Aw&ab_channel=ProgrammingKnowledge 3. Click "Configure" > "AVD Manager" ![](https://i.imgur.com/ubCJwUW.png) 4. AVD Manager should look like this(But will be empty) Click "Create Cirtual Device" ![](https://i.imgur.com/DqymcGW.png) 5. Here is devices you can create. And click "Next" ![](https://i.imgur.com/XJvWpuD.png) 6. Choose the OS version of device. Recommand the API 29 or 30. And click "Next" (如果是第一次使用會需要下載 API version) ![](https://i.imgur.com/2kP496Z.png) 7. Click "Show Advanced Settings" ![](https://i.imgur.com/QH72I82.png) 8. Scroll to "Memory and Storage" and increase the RAM size and finish ![](https://i.imgur.com/iCx7EjR.png) 9. If every things is fine. The device will display in the list. And Click the play button will start up the device. ![](https://i.imgur.com/gK93w3X.png) 10. The device will look like this if start successed. ![](https://i.imgur.com/ec4eK4k.png) 11. Click the google play. The google play will requied to login first when opening. ![](https://i.imgur.com/yfR5uCr.png) 12. Search the hikingbook in google play and download. ![](https://i.imgur.com/EJzBOjE.png) 13. If app is download it will present on the main page. ![](https://i.imgur.com/CrJW7uN.png) ## ~~目前會碰到的問題~~ 1. 庭羽的電腦可能會裝不起來 Android studio 2. 庭羽的電腦在建立 AVD manager 的時候會有問題 3. Emulator 跑起來的時候會吃掉很多的記憶體,可能會有卡頓甚至是重新開機的問題 4. 我要把庭羽的公司 google 帳號加到 internal test 的名單中,才可以做內部測試 5. Android app 的 release 目前沒有支援跑在模擬器上面,所以下次 release 要做這樣的處理