The installRelease task was not found in the root project ReactNativeStarter. Some candidates: "uninstallRelease"

I get the above error when I use the react-native run-android --variant=release , as it said in the reaction docs. I signed my key as he said in the docs , but it does not work.

I also could not use the cd android && ./gradlew assembleRelease directly from my project folder. I had to make cd android and then gradlew assembleRelease

+6
source share
2 answers

From reaction-native documentation

Please note that --variant = release is only available if you configured the signature as described above.

Make sure you follow the steps in the documentation correctly.

+5
source

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

 cd android && gradlew assembleRelease 
+6
source

Source: https://habr.com/ru/post/1012017/


All Articles