I
I
Ivan Antonov2019-07-02 17:32:36
Android
Ivan Antonov, 2019-07-02 17:32:36

How to upload a React Native application to the Play Market?

I created an application on React Native and it's time to upload it to the Play Market.
I build according to the documentation https://facebook.github.io/react-native/docs/signe...
But the problem is that the `build.gradle` file in the documentation is not complete (with ellipsis).
And when I try to execute the command `gradlew bundleRelease` I get the error:


FAILURE: Build failed with an exception.
* What went wrong:
Task 'bundleRelease' not found in root project 'android'.
* 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. Run with --scan to get full insights.
* Get more help at https://help.gradle.org

Tell me, maybe I'm using the wrong gradlew. Or does `build.gradle` really need to be downloaded from somewhere?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Antonov, 2019-10-27
@antonowano

The problem is that I was making an application using Expo. It was necessary to publish the application according to its documentation, and not according to the React Native documentation.

D
davidnum95, 2019-07-02
@davidnum95

Try to compile through android studio

S
Shane Matte, 2019-08-30
@mattedev

Show code android/app/build.gradle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question