question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Task 'installRelease' not found in root project

See original GitHub issue

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Environment: OS: Linux 4.13 Node: 6.11.4 Yarn: Not Found npm: 3.10.10 Watchman: 4.7.0 Xcode: N/A Android Studio: Not Found

Packages: (wanted => installed) react: ^16.0.0 => 16.0.0 react-native: ^0.50.3 => 0.50.3

Steps to Reproduce

(Write your steps here:)

  1. cd android
  2. ./gradlew installRelease

Expected Behavior

release version of app is installed on connected device like in previous version of react-native

Actual Behavior

$ ./gradlew installRelease
Incremental java compilation is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
Task 'installRelease' not found in root project 'AppName'. Some candidates are: 'uninstallRelease'.

* 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.

BUILD FAILED

Total time: 3.648 secs

Reproducible Demo

follow steps to reproduce

related issue

https://github.com/facebook/react-native/issues/16617

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

92reactions
BuffMcBigHugecommented, Dec 1, 2017

I was able to run manually: cd android && gradlew assembleRelease, but it’s outputting app-release-unsigned.apk.

Edit: It appears I was missing signingConfig in buildTypes > release. See example below:

...
android {
    ...
    defaultConfig { ... }
    signingConfigs {
        release {
                storeFile file(MYAPP_RELEASE_STORE_FILE)
                storePassword MYAPP_RELEASE_STORE_PASSWORD
                keyAlias MYAPP_RELEASE_KEY_ALIAS
                keyPassword MYAPP_RELEASE_KEY_PASSWORD
        }
    }
    buildTypes {
        release {
            ...
            signingConfig signingConfigs.release
        }
    }
}
...
24reactions
ThaJaycommented, Nov 16, 2017
$ react-native run-android --variant=release
Scanning folders for symlinks in /media/dj/dev/scan-app/node_modules (16ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installRelease)...
Incremental java compilation is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
Task 'installRelease' not found in root project 'AppName'. Some candidates are: 'uninstallRelease'.

* 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.

BUILD FAILED

Total time: 1.283 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:
https://facebook.github.io/react-native/docs/android-setup.html
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native installRelease Task 'installRelease' not found in ...
Task 'installRelease' not found in root project 'timeReportTool'. Some candidates are: 'uninstallRelease'. here is the Android block from my ...
Read more >
React-native – Task 'installRelease' not found in root project ...
I get the above error when I use the command react-native run-android --variant=release like it said in the react native docs. I signed...
Read more >
Task 'installRelease' not found in root project 'RNMKDemo'
I want to install demo app in my real devices with installRelease task, When I build app with: cd android && ./gradlew installRelease....
Read more >
Task 'bundle' not found in root project 'android' - Ionic Forum
i want to build ionic project to .aab file but get error like this I issue a command like this 1. npm install...
Read more >
User Andrew Koster - Ask Ubuntu
error command webpack not found when I deploy with capistrano. 11. React Native installRelease Task 'installRelease' not found in root project ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found