Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Emulator: I/O warning : failed to load external entity

I moved my Android Studio away from my C drive over to my F drive to save up on space but now I'm having trouble running my app to test it with Android Emulator.

event log image

enter image description here

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

The location where this file is situated is actually in F:/Android/.AndroidStudio3.1/...

How do I tell the emulator to check at that location instead?

  • I've added an environment variable ANDROID_SDK_HOME with value F:\Android
  • I've set custom paths in idea.properties in AndroidStudio/bin
  • I've set the gradle path to F:/Android

Thanks in advance!

like image 449
Robin Ryckmans Avatar asked Apr 11 '18 12:04

Robin Ryckmans


1 Answers

ATM, The only solution I know to fix this was to create a symbolic/hard link for the original file into the directory where android emulator looked it up. Well, that's how I fixed this issue. My guess was the search path for the emulator was hard coded into android emulator source. That's only my guess though.

So, in your case, just create a copy / symlink (recommended, as updates.xml often got modified by Android Studio on update) like this maybe (pardon me, as I'm not a windows user).

mklink C:/Users/Robin/.AndroidStudio3.1/config/options/updates.xml F:/Android/.AndroidStudio3.1/config/options/updates.xml

Well, I'll update my answer in case I get a better solution for this. BTW, I hope this can be any help for you :)

like image 193
nanangarsyad Avatar answered Sep 27 '22 17:09

nanangarsyad