Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task 'installRelease' not found in root project 'ReactNativeStarter'. Some candidates are: 'uninstallRelease'

Tags:

react-native

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 my key just like it said in the docs but it's not working.

I also couldn't use the command cd android && ./gradlew assembleRelease directly from my project folder. I had to do cd android and then gradlew assembleRelease

like image 827
Sinan Samet Avatar asked Nov 04 '16 07:11

Sinan Samet


2 Answers

From react-native documentation

Note that --variant=release is only available if you've set up signing as described above.

Verify whether you have followed the steps mentioned in the documentation properly.

like image 135
Jickson Avatar answered Nov 11 '22 04:11

Jickson


For your second issue, try this if you are using Windows:

cd android && gradlew assembleRelease
like image 7
max23_ Avatar answered Nov 11 '22 06:11

max23_