Task 'installRelease' not found in root project
See original GitHub issueIs 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:)
- cd android
- ./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
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to run manually:
cd android && gradlew assembleRelease
, but it’s outputtingapp-release-unsigned.apk
.Edit: It appears I was missing
signingConfig
inbuildTypes
>release
. See example below: