-2

Everytime I click run, firstly it takes forever building and displaying and then it comes up with this message:

Here: (apologies for the blurry image)

I also get these errors in my event log when I close my emulator:

19:56 Emulator: qemu-system-i386.exe:

19:56 Emulator: Unable to open C:\Users\talha.android\avd\Nexus_5_API_27_1.avd\data\misc\pstore\pstore.bin: Permission denied

Any ideas as to how I can fix this?

Tal
  • 11
  • 4
  • Permission Denied on a folder means the user running the emmulator doesn't have permission for using the mentioned folder. You have to run it with a user that has permission over that folder, or have an administrator give permissions to your user to use that folder. I guess that the permission needed would be read, write, and execute. – Juan Apr 08 '18 at 19:09
  • Would it change if I use a different virtual device? – Tal Apr 08 '18 at 19:12
  • I think there are some alternatives here you can explore https://stackoverflow.com/questions/2841766/possible-to-change-where-android-virtual-devices-are-saved – Juan Apr 08 '18 at 19:19

1 Answers1

0

Go to C:\Android.android\avd\MyNexus5API27.avd\data\misc, make right click on pstore, pick Properties and uncheck box Only for reading (Title may be a little different).

Raman Sharma
  • 159
  • 1
  • 5
  • I tried this but it won't save my changes and still shows as 'read only', which results in my app continuing to crash – Tal Apr 08 '18 at 19:54
  • delete the lock file in this route C:\Users*your user*.android\avd/MyNexus5API27.avd/*.lock – Raman Sharma Apr 08 '18 at 19:57
  • I don't see a '.lock' or anything similar to that in this route, could you possibly show me a screenshot of how this is supposed to look please? – Tal Apr 08 '18 at 20:10
  • You can solv it by recreating the AVD from scratch. use Android studio and delete the AVD first delete the Folders according to your AVD name example-Nexus_5X_API_27 – Raman Sharma Apr 09 '18 at 12:33