I have a react native project in ubuntu server, and I want to build an android app for production. to do that I first have to generate Gradle Wrapper files so I run this command in android
directory
gradle wrapper --gradle-version <my-gradle-version>
After I run this command I got this error
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I know how to define SDK location with sdk.dir
in the local.properties
file or with an ANDROID_HOME
environment variable.
But my problem is SDK isn't installed
My question is in react native which sdk I need to build an android app for production and how to install it in ubuntu server