Skip to content

Task 'installDebug' not found in project ':app' #1079

@co2nut

Description

@co2nut

Hi guys, I'm getting getting error below when trying to init a new project:

BUILD FAILED in 1s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'installDebug' not found in project ':app'.

  • Try:
    Run gradlew tasks to get a list of available tasks. 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 1s

at makeError (/Users/XXXXXXX/Development/mrpos/androidDemo/node_modules/execa/index.js:174:9)
at Promise.all.then.arr (/Users/XXXXXXX/Development/mrpos/androidDemo/node_modules/execa/index.js:278:16)
at process._tickCallback (internal/process/next_tick.js:68:7)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions