Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Native Android Release build error: unknown option `--configuration'

Tags:

react-native

So this isn't my first react native app but this is the first time i'm getting this error. I get the usual error when running:

react-native run-android --variant=release

Thats ok because I know it doesn't work. However, this one always use to work:

react-native run-android --configuration=release

But it is just stating: error: unknown option--configuration'`

I've had that issue before. I've done everything on the generate a signed APK web page. I can get a non-release but not the release. I even have the APK from: cd android && ./gradlew assembleRelease

like image 830
james Avatar asked Feb 06 '17 16:02

james


1 Answers

Have you recently upgraded your React Native version?

Because the following only works on version 0.39.x

react-native run-android --configuration=release

Else, just use this

react-native run-android --variant=release

like image 184
max23_ Avatar answered Oct 04 '22 20:10

max23_