当我在配置React-Native的时候出现这样的错误,如何解决?

#1
$ react-native run-android

Starting JS server…
Building and installing the app on the device (cd android && ./gradlew installDebug)…

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:app’.

failed to find target with hash string ‘android-23’ in: /usr/local/opt/android-sdk

  • 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: 6.509 secs
Could not install the app on the device, see the error above.加粗文字

#2

楼主,这个问题你解决了吗?我今天也遇到这个问题了,可以分享一下吗