How to Fix "Java. Lang. Illegalstateexception: Already Executed." Pid: 7664? [Closed]

How to Fix "Java. Lang. Illegalstateexception: Already Executed." Pid: 7664? [Closed]

This is my issue when I try to Login on Emulator!

How do I resolve this?

2 Answers

Android Studio, at least in my experience, has been extremely buggy. Try the following steps:

  • Restart the emulator
  • Wipe data from the device (using device manager)
  • Use another emulator (create another device using device manager)
  • Restart Android Studio
  • Restart your PC

If none of the above work, create a new project and copy paste your code onto that project. I know it seems silly but it has actually worked for me!

Hope this helps. -Suhas

I remember having to deal with this error when I was working with Java web services, my problem was I didn't stop the service completely when I needed to reload it and when I tried to start a new instance it couldn't (giving me this error) because I had it already running. My "fix", for what I remember, was just going in the processes and stopping it manually.

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.