Я пытаюсь настроить Android studio так, чтобы все реагировало нормально, но когда я запускаю react native run-android
, это выдает ошибку вроде этого.
"Install Android SDK Platform 26 (revision: 2)" failed.
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 26]
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: 1 mins 51.309 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/getting-started.html
Я думал, что мне нужно установить платформу Android SDK26 (редакция: 2), но он не доступен в sdk manager, так из sdk tools 26.0.3, но все еще не работает.Может кто-нибудь сказать мне, где проблема и как я могу это исправить.