React Native医生建议升级Android SDK版本,但我使用最新版本?

时间:2019-11-29 15:26:54

标签: reactjs react-native react-native-android

运行本地医生时

Common
✓ Node.js
✓ yarn

Android
✓ ANDROID_HOME
✖ Android SDK - Required for building and installing your app on Android
  - Version found: 23.0.1
  - Version supported: >= 26.x

但在build.gradle

buildscript {
ext {
    buildToolsVersion = "28.0.3"
    minSdkVersion = 16
    compileSdkVersion = 28
    targetSdkVersion = 28
    androidXAnnotation = "1.1.0"
    androidXBrowser = "1.0.0"
    androidXCore = "1.0.2"
}

我不知道这些工具会从中检测设置,我该怎么办?

1 个答案:

答案 0 :(得分:0)

有一个open issue about this

运行命令react-native doctor时似乎${ANDROID_HOME}/tools/bin/sdkmanager --list在顶部选择了版本,而应该从底部开始选择该版本。

您可能应该等待这个问题解决!