android-studioreact-nativereact-android

android.process.acore has stopped and :app:installdebug FAILED


I was running my react Native application successfully till yesterday. Today, when I tried to start my pixel AP! 23 phone emulator, I got the below error saying "unfortunately the process android.process.acore has stopped". Below is the screen shot. After seeing this error, I tried to Factory reset the phone, but still this error persists. I also tried to clear cache and clear data from phone settings.

error

I pressed Ok for this error message and tried to run my application using the command

react-native run-android

when I did this I got the below error message saying:

:app:installDebug FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 15.826 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment:

below is the screen shot:

enter image description here

the application was running fine till yesterday. I am using


Solution

  • I uninstalled the older version of android studio and downloaded the new one. I also Created a new Virtual device for Pixel phone and everything started working.