2
Guys I have an annoying error when installing React:
~/MyApp $ react-native run-android
Scanning 555 folders for symlinks in /home/henrique/MyApp/node_modules (4ms)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
File /home/henrique/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 23.0.1 in /home/henrique/Sdk/licenses
License for package Android SDK Build-Tools 23.0.1 accepted.
Preparing "Install Android SDK Build-Tools 23.0.1".
Warning: Failed to read or create install properties file.
Checking the license for package Android SDK Platform 23 in /home/henrique/Sdk/licenses
License for package Android SDK Platform 23 accepted.
Preparing "Install Android SDK Platform 23".
Warning: Failed to read or create install properties file.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following SDK components:
[Android SDK Platform 23, Android SDK Build-Tools 23.0.1]
Please install the missing components using the SDK manager in Android Studio.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 13.957 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
I tried to install Android SDK Platform 23, but still nothing... Has anyone been there? Thanks in advance.
Guys I restarted, now ta with this error: SDK Location not found. Define Location with sdk.dir in the local.properties file or with an ANDROID_HOME Environment variable.
– Henrique Nascimento