android-studio-portable icon indicating copy to clipboard operation
android-studio-portable copied to clipboard

Emulator: I/O warning : failed to load external entity "file:/C:/Users/username/.AndroidStudio3.4/config/options/updates.xml"

Open yetangye opened this issue 6 years ago • 4 comments

Behaviour

When launch emulator, has warning:

Emulator: I/O warning : failed to load external entity "file:/C:/Users/username/.AndroidStudio3.4/config/options/updates.xml"

Steps to reproduce this issue

  1. Debug an android app using an Android 8.1 AVD

Expected behaviour

Not display this warning message.

It looks like the updates.xml is in android-studio-portable\data\config\options, but the emulator find it in C:/Users/username/.AndroidStudio3.4/config/options. and in fact there is no folder C:/Users/username/.AndroidStudio3.4/config/ in disk.

Actual behaviour

Tell me what happens instead

Configuration

App release / arch (ex. 1.0.0-2 win64) :

3.4.2-4

Operating system (ex. Windows 10 Pro 64 bits) :

Win 10 64 bit, 1903

yetangye avatar Aug 13 '19 23:08 yetangye

Hi @yetangye, thanks for your report. I was able to reproduce your issue but the emulator seems to be launched anyway:

Image1

Is it the same behavior for you ?

crazy-max avatar Aug 14 '19 09:08 crazy-max

@crazy-max 👍 Yes, emulator also launched on my PC.

yetangye avatar Aug 14 '19 09:08 yetangye

After many attempts, it seems this path is hardcoded in the emulator code. The only way to solve this problem would be to create a symbolic link that requires administrative rights. Which I don't really find acceptable in this kind of situation. See also https://stackoverflow.com/a/51111124/514571

crazy-max avatar Aug 14 '19 16:08 crazy-max

I try the solution but for me not working. Not arted the emulator on Windows10 9:27 Emulator: I/O warning : failed to load external

9:27 Emulator: entity "file:/C:/Users/szautb/.AndroidStudio4.0/config/options/updates.xml"

9:27 Emulator: ERROR: resizing partition e2fsck failed with exit code 8

9:27 Emulator: I/O warning : failed to load external entity "file:/C:/Users/szautb/.AndroidStudio4.0/config/options/updates.xml"

after I try on cmd.

C:\WINDOWS\system32>mklink /H C:\Users\szautb.AndroidStudio4.0\config\options\updates.xml D:\portapps\android-studio-portable\data\config\options\updates.xml Es sind lokale NTFS-Volumes erforderlich, um den Vorgang abzuschlieĂźen.

how can i solve this issue to start an emulator?

SzautnerB avatar Oct 07 '20 08:10 SzautnerB