Error message in Android Studio when trying to start and load the emulator for the first time

Error message:

PANIC: Could not open AVD config file: C:\Users\Darth\.android\avd\Nexus_5_API_21_x86.avd\config.ini 

I looked in this directory and there is no config.ini file. Only userdata.img file.
When viewed in the AVD manager, the action column says "Failed to load." If I right-click and click on the details, it shows an error:

  Error: Failed to parse properties from C:\Users\Username\.android\avd\Nexus_5_API_21_x87.avd\config.ini 

Fixed a fix that did not work:

1 - Try selecting a different device definition. (the config.ini file is still missing when selecting several other devices)

2 - sharing the .android file with my entire home group (device selection still does not create the config.ini file, the same error persists)

FIX: Thanks for all the answers. The fix that worked changed the AVD memory to 512!

+6
source share
11 answers

I also had the same error, but the reason was not mapped x64 vs x86 incorrectly. It turns out that my emulator does not load, because the skin is not defined. The way I fixed it:

  • Remove any previous wear emulators that failed.
  • Select a model (Round / Square) and an Android version (e.g. Lollipop)
  • On the last screen, click "Show advanced settings"
  • Scroll to the end and set the "Custom skin definition" to "AndroidWearSquare" or "AndroidWearRound", which should be at the bottom of the list of skins

Then, after you are done, everything should work!

+14
source

Just put the Android SDK on the same drive where you installed Android Studio 1.0. There is a problem if these drive letters are different. This will definitely work for you. I decided this last week.

+4
source

Try using the AVD manager from C: \ User \ <% USERNAME%> \ AppData \ Local \ Android \ Sdk \

https://code.google.com/p/android/issues/detail?id=78577#c25

+1
source

For windows: 1) new "system variables" are added to environment variables, ANDROID_SDK_HOME = D: \ Program Files \ android-sdk-windows (select your home directory android sdk)

2) change the system variables Path, add "% Android_SDK_HOME% \ tools;"

+1
source

I had the same problem on Linux. The problem was that the installation was done using root and Android Studio was run by a normal user, so at the time I install Android Studio, each android file for emule remains here:

 /root/.android/avd/Nexus_5_API_21_x86.avd /root/.android/avd/Nexus_5_API_21_x86.ini 

So, you need to copy the files from your user, and then:

 sudo cp -Rf /root/.android /home/YOUR_USER 

I hope this helps. Best wishes.

+1
source

I have created many emulators and never touch .android \ avd \ Nexus_5_API_21_x87.avd \ config.ini you just create an emulator, try to avoid the "warp user data", choose the right device and target API, set the SD memory you need and do the same with external RAM, and there is no reason not to work. Guesses: the \ Nexus_5_API_21_x87.avd \ config.ini file may be read-only! or you do not have permission to access .android / (share this folder with all users and give them full information.

I hope this helps

0
source

As I mentioned above, I ran into the same problem.

For me, it looks like a build error and definitely not a problem right, while another file was completely created (userdata.img), as well as the entire folder for avd.

The decision β„–1:, without changing anything during the installation, I just found the config.ini file on the Internet. For example, here is config.ini for Nexus_S_API_21

So, I created Nexus_S AVD and put the configuration file in a folder. Then it starts to work.

The problem with this method:

  • limited devices
  • manually configure updates through the configuration file
  • I still had some problems, for example. instead of displaying the project, I was displayed on the Android main page and there was no my application

Solution # 2: Then I completely uninstalled Android Studio and cleared all the contents and downloaded 0.8.14 from scratch, during the installation I updated it to version v.9.9.9. and then not updated further. In this version, everything worked perfectly, without any manipulation. AVD, created the first time and at startup - displays the project screen, opened using Hello World.

0
source

I had the same problem and was able to fix it with the following solution.

The root cause. My system is 32-bit and the config.ini file is present in

 C:\Users\Saajan Pruthi\.android\avd\Nexus_5_API_21_x86.avd 

instead

 C:\Users\Saajan Pruthi\.android\avd\Nexus_5_API_21.avd 

Pay attention to x86 ... I just copied the configuration file to a later folder and worked.

0
source

I did the following and it worked:

  • moved the sdk folder from C: \ Users \ User \ AppData \ Local \ Android \ sdk to the Android Studio program folder in the C: \ Program Files \ Android \ Android Studio \ sdk folder

  • Android studio rebooted and reconfigured it to point to the new sdk folder

  • Restored the emulator and started it

0
source

I also had this problem. I just deleted the AVD and added it back - the emulator is working fine now.

0
source

I had the same problem and it turned out that my hard drive was full. For those who are still looking for a solution, make sure you still have a place.

0
source

Source: https://habr.com/ru/post/979214/


All Articles