Christos
Christos

Reputation: 81

System image folder in config.ini doesn't exist

Recently I installed Xamarin and the Android SDK in order to mess around with Android development. After spending all day fixing errors before writing a single line of code, this one has me stumped. I haven't found a solution anywhere on the internet.

enter image description here

I have installed the emulator and I have downloaded several system images. I have searched for this config.ini but didn't find which one the error seemed to be referencing. I can build the solution just fine but when I try to debug it just says "There were deployment errors", and in the output window just says "Error: cancelled."

Is there any way to solve this issue?

Thanks.

Upvotes: 8

Views: 3362

Answers (2)

AxD
AxD

Reputation: 3182

I just had the same issue.


You solve this problem like this:

  1. Select the corresponding Android emulator device
  2. Hit the Ellipsis character at the upper right corner of Android Device Manager
  3. Select "Download system image" menu item

This will download the missing system images for your Android emulator.


Here are some screenshots, depicting the solution (they're in German):

Android Device Manager - Download System Image menu item

Android Device Manager - Download progress


I suspect Microsoft didn't add these because they're not courtesy of Google. You need to accept Google's license terms when downloading the images.

Upvotes: 3

JackySky
JackySky

Reputation: 343

So I come across the same error message on my device manager. I solved it with following step:

  1. Go to your ~\.android\avd. There should be a folder named [YourDeviceName].avd. For my case it was Nexus_5X_API_28_x86.avd.
  2. Inside the folder there should be a config.ini. Look for a property named image.sysdir.1. Mine was image.sysdir.1=system-images\android-28\google_apis_playstore\x86\. Make sure the your have properly downloaded such image in %ANDROID_HOME%\system-images.

For me, it seems that I have installed Android SDK twice in two different locations with Android Studio & Visual Studio Xamarin installation, and they have messed up my device manager. So I uninstalled one and moved the images and it worked fine then. While this is probably a year too late for OP, I hope this could help someone in the future.

Upvotes: 5

Related Questions