[ad_1]
In my own case, I had multiple errors most of which were about mis-configured ANDROID_SDK_ROOT
, at the end of the day, one thing seemed to fix the whole thing.
Follow the following process:
After Creating the A new Emulator Device on AVD, go to the Actions menu and click on the arrow pointing downwards as shown below.
Click on Show on Disk
Edit Config.ini
Look for image.sysdir.1
it should have a value like this : image.sysdir.1=system-images\android-28\google_apis_playstore\x86\
Your own value might be different
Now, fix in the path of the Android SDK to make a complete path.
image.sysdir.1=**C:\androidsdk\**system-images\android-28\google_apis_playstore\x86\
If you noticed, the android sdk path shown above is different from the normal default android sdk, I had to move it to C:/androidsdk
to avoid NDK issues as my main USER HOME on my PC has whitespaces which NDK might not support.
NOTE: Moving the SDK directory away from its default directory is usually the cause of these errors AVD emulator gives, most especially as regarding broken and misconfigured path. The fix I provided above is a quick fix, you may have to do that each time you create a new device on AVD Emulator.
This fix should also work when working on CMD with cordova .
[ad_2]