![]() The above commands ask a bunch of questions to configure the AVD if we choose the custom hardware profile option. Create emulator using Google Play Services system imageĪvdmanager create avd -n -k "system-images android-30 google_apis_playstore x86_64"Īvdmanager create avd -n emulator30ps -k "system-images android-30 google_apis_playstore x86_64" Create the emulator using default system imageĪvdmanager create avd -n -k "system-images android-30 google_apis x86_64" -g "google_apis"Īvdmanager create avd -n emulator30 -k "system-images android-30 google_apis x86_64" -g "google_apis" Replace with the actual name preferred by you. Step 7 - Using the Emulator and AVD ManagerĬreate Android Emulator - Create the emulator using the system image downloaded in the previous step as shown below. Install Build Tools - Install the most recent build tool listed by the list command. Install Emulator - We need to install the emulator before creating the AVD using SDK Manager. Sdkmanager "system-images android-30 google_apis_playstore x86_64" ![]() Install Google Play Services system image ![]() We need system images specific to Google Play Services as shown below. There are several projects which need Google Play Services. ![]() Sdkmanager "system-images android-30 google_apis x86_64"Īccept the License Agreement to complete the download. Install default system image for platform android-30 We are adding the most recent default 64-bit system image. Update SDK Manager - Update the SDK manager using the below-mentioned command.Īdd System Image - We can add system images from available images shown by the list command using the SDK manager as shown below. Platforms android-30 | 3 | Android SDK Platform 30 | platforms\android-30\Īdd-ons addon-google_apis-google-16 | 4 | Google APIs If we again check the installed packages, the list command shows the installed options as shown below. This command creates the directory platforms within android-sdk and installs the package android-30 having all the required files to run the emulator for Android 10. Enter y and hit Enter Key to accept the terms and conditions. It will ask to accept the terms and conditions as shown in Fig 13. # Go to the SDK Tools bin directory to access sdkmanager Install Platform - Use the below-mentioned command to install the Android 10 (API level 30) using the SDK manager. We can see that it shows the tools and platform-tools installed by us Platform-tools | 31.0.0 | Android SDK Platform-Tools 31 | platform-tools\Īdd-ons addon-google_apis-google-15 | 3 | Google APIs Installed packages:=] 100% Computing updates. List all the installed and available platforms, system images and other resources List - We can list the installed and available packages and images using the list command as shown below. Now move all the files to the directory cmdline-tools/3.0 as shown in Fig 10. It will show the version details as shown below. ![]() Now open the source.properties file from the cmdline-tools directory to check the version. error: either specify it explicitly with -sdk_root= or move this package into its expected location: \cmdline-tools\latest\" since it expects the Command Line Tools in a version-specific directory. We can see that the ADB command works well and shows the version details, but the sdkmanager shows an error - "error: could not determine sdk root. Installed as E:\tools\java\android-sdk\platform-tools\adb.exeĮrror: Either specify it explicitly with -sdk_root= or move this package into its expected location: \cmdline-tools\latest\ You might be required to restart the system to apply the environment variables set by us. Now open the Command Prompt and check the ADB and SDK Manager versions as shown in Fig 10. This section shows various options to download the SDK tools as shown in Fig 1. Open the download tab of Android Studio and scroll down to the Command line tools only section. In case you are interested in developing Android applications using Android Studio, you can also follow How To Install Android Studio On Windows. You can follow How To Install Java 8 On Windows 10, How To Install Java 11 On Windows, How To Install Java 15 On Windows, or How To Install OpenJDK 15 On Windows to install Java on Windows. It also assumes that a valid JAVA_HOME environment variable exists pointing to the installation directory of Java. This post is useful for the developers using Android Platform Tools and SDK manager without installing Android Studio for the use cases including hybrid app development using Ionic. This tutorial provides the steps for Windows 10, though the steps should be the same on other versions of Windows. In this tutorial, we will discuss all the steps required to install Android Platform Tools and SDK Manager on Windows 10. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |