execution failed for task app installdebug

execution failed for task app installdebug

Error Message


FAILURE: Build failed with an exception.

* What went wrong: Execution failed for task app installdebug
Execution failed for task ‘:app:installDebug’.
> com.android.builder.testing.api.DeviceException: No connected devices!

* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 49s


error Failed to install the app. Make sure you have an Android emulator running or a device connected. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

What task app installdebug failed?

    The task app installdebug failed happen in when it cant install the build apk on your device. This might be due to because your device  is not connected or emulator is not running. Somehow the point is that apk was built successflly but it cant install the app. It might be because you have a higher version of same apk already installed on the device or emulator!

Possible solution for this problem

  1. Ensure that device is connected successfuly to PC
  2. Check if emulator is running.
  3. Check if USB Debugging is enabled
  4. Check for loose connection
  5. If you have already installed application, please uninstall application and try

The best solution for Execution failed for task app installdebug

The best solution is for you to install the emulator. Download genymotion or any other emulator. Once the emulator is opened you can start the build process of application. This way application will auto start on the emulator. You can always use the built in emulator in the android studio also. While choosing emulator type, ensure to chose a emulator that have playstore installed. Mostly pixel devices will have google playstore pre-installed.

While you are also do check out Execution failed for task ‘:app:mergeDexDebug’ | execution failed for task appmergedexdebug.

Also check How to upgrade to windows 11 without loosing any data