|
| 1 | +--- |
| 2 | +title: "Installing HMS Core in Android Studio Emulator" |
| 3 | +excerpt: "If you want to test your HMS implementation and you do not have a Huawei device, it is easy to mock it and test these services in the Android Studio emulator." |
| 4 | +tags: Mobile Android Huawei HMS |
| 5 | +authors: |
| 6 | +- Edgar Barragan |
| 7 | +header: |
| 8 | + teaser: /assets/images/post/hms-core/hms_core_banner.png |
| 9 | + teaser_alt: Huawei logo |
| 10 | +category: Android |
| 11 | +--- |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +# Introduction |
| 16 | + |
| 17 | +This is a quick guide with few and simple instructions on installing HMS Core in Android Studio Emulator. If you want to test your HMS implementation and you do not have a Huawei device, this is your best option. |
| 18 | + |
| 19 | +# Steps |
| 20 | + |
| 21 | +**1.** Create a new device with only Google APIs, no Play Store. For this example, a Pixel 4a with API 31 is being used. |
| 22 | + |
| 23 | +Choose a device without Play Store. |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +Choose a version of Android with Google APIs. |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +**2.** Install the Huawei AppGallery APK |
| 32 | + |
| 33 | +You can either Google or install it from the [Huawei Consumer website](http://consumer.huawei.com/en/mobileservices/appgallery/). |
| 34 | + |
| 35 | +Download the AppGallery APK. |
| 36 | + |
| 37 | +{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_2.png" max-height="600px" %} |
| 38 | + |
| 39 | +Allow installing unknown apps in Chrome browser and install the app. |
| 40 | + |
| 41 | +{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_2.1.png" max-height="600px" %} |
| 42 | + |
| 43 | +**3.** Install HMS Core. |
| 44 | + |
| 45 | +Open the AppGallery, you will be prompted to install HMS Core. Proceed with the installation. |
| 46 | + |
| 47 | +{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_3.png" max-height="600px" %} |
| 48 | + |
| 49 | +**4.** Allow the installation of unknown apps. |
| 50 | + |
| 51 | +Once the HMS Core has been downloaded, you need to allow installing unknown apps from AppGallery to install it. |
| 52 | + |
| 53 | +{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_4.png" max-height="600px" %} |
| 54 | + |
| 55 | +**5.** Verify it all went well. |
| 56 | + |
| 57 | +Press “Done”, then press the back button, you will see the AppGallery login screen. |
| 58 | + |
| 59 | +{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_5.png" max-height="600px" %} |
| 60 | + |
| 61 | +Verify that the HMS Core app is installed. |
| 62 | + |
| 63 | +{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_6.png" max-height="600px" %} |
| 64 | + |
| 65 | +# Conclusion |
| 66 | + |
| 67 | +Installing HMS Core in Android Studio Emulator is straight forward and now you can use its rich array of open device and cloud capabilities. |
0 commit comments