• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Errors when I try to run my app

Greum

Well-Known Member
I seem to be completely snookered now. When I try to run my fledgling app in a Pixel 3 VM I get the following in the error log:

14:08 Emulator: C:\Users\name\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: -drive if=none,index=2,id=userdata,file=C:\Users\name\.android\avd\Pixel_3_API_Q.avd\userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576: Could not open 'C:\Users\name\.android\avd\Pixel_3_API_Q.avd\userdata-qemu.img.qcow2': The process cannot access the file because it is being used by another process.

Then when I try another device I get a pop-up with the following message:

Installation failed with message 'cmd package install-create -r -t -S 1697135' returns error 'Unknown failure: cmd: Can't find service: package'.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!

I've rebooted my machine but I get the same problem each time.
 
I guess I should follow the instructions! Uninstalling and reinstalling the APKs appears to have worked, but I still get plenty of errors in the error log.
 
Back
Top Bottom