Search code examples
react-nativeandroid-studioandroid-emulator

Android Emulator with data crashes on launch Task :app:installDebug FAILED


I created initial project (followed all the steps) by

npx react-native init AwesomeProject

when I run android emulator by:

npx react-native start
npx react-native run-android

I'm getting this error

> Task :app:installDebug FAILED

As I can see, there's no metro connection

When I wipe data or reinstall the emulator, it works fine for the first time, but when I load the app for the second time, I get this error again

Any ideas how to fix? Many thanks!


Solution

  • I tested that version of Android Studio on two more Macbook devices, and all of them had the same issue. Only the new release of Android Studio worked