-1
I am trying to run a React-Native project by USB debugging on mobile phone and is giving error. I point out that I have already used 'adb Devices~ and appears the ID of my mobile phone in the terminal, but when giving the command 'Yarn React-Native run-android~ shows the following error:
FAILURE: Build failed with an Exception.
- What Went Wrong:
A problem occurred Configuring project 'app'.
SDK Location not found. Define Location with an ANDROID_SDK_ROOT Environment variable or by Setting the sdk.dir path in your project’s local properties file at '/home/Luan/Desktop/omnistack8/tindev/android/local.properties'.
This local sdk with the Native Android files so I understand of React-Native should already come configured, which variables I would have to add in this location.properties?
You have configured the environment variables?
– Felipe Avelar
I had not configured correctly for what I saw, I re-did everything calmly and now gave another error when trying to run on android * What Went Wrong: A problem occurred Configuring project ':app'. > The SDK directory '/path-do-sdk/android-sdk' does not exist.
– Luan Perosa
From the description of the error, he couldn’t find the folder you reported. See if this step by step helps you https://docs.rocketseat.dev/ambiente-react-native/android/linux
– Bins