【问题标题】:React Native Android SDK Supported Version Not Found Mac未找到 React Native Android SDK 支持的版本 Mac
【发布时间】:2020-10-14 08:38:43
【问题描述】:

我是 React Native 的新手。我的目标是构建 Android。 针对这个特定问题已经有很多解决方案,但我相信我已经遵循了几乎其中的一个。

这是我的医生 cli 结果:

Common
 ✓ Node.js
 ✓ npm
 ✓ Watchman - Used for watching changes in the filesystem when in development mode

Android
 ✓ JDK
 ✓ Android Studio - Required for building and installing your app on Android
 ✖ Android SDK - Required for building and installing your app on Android
   - Versions found: 28.0.2, 28.0.3, 29.0.0, 29.0.2, 29.0.3, 30.0.2
   - Version supported: Not Found
 ✓ ANDROID_HOME

iOS
 ✓ Xcode - Required for building and installing your app on iOS
 ✓ CocoaPods - Required for installing iOS dependencies
 ● ios-deploy - Required for installing your app on a physical device with the CLI

Errors:   1
Warnings: 1

如您所见,可以找到 SDK,但显然找不到 supported version

到目前为止我做了什么:

  1. 已添加local.properties https://stackoverflow.com/a/54234228/3231194
  2. 正确配置/.bash_profile 事物。
  3. 并排安装了 Android NDK,以及其他 Android 所需的东西。
  4. 已安装 Android API 30、10.0(Q)

【问题讨论】:

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


    【解决方案1】:

    在首选项设置中切换到SDK Platforms 并安装版本 28、29、30。然后尝试再次运行。希望对您有所帮助。

    【讨论】:

    • 谢谢。尽管这个答案应该有所帮助,但我从未尝试过。但我只是想结束这个问题,我想添加更多信息:医生 cli 并没有真正的帮助。我的意思是即使它显示不支持的版本,我仍然让它运行。
    • @GlennPosadas 是的。它仍然通过遵循指南向您发出警告。如果您遇到任何问题,应该使用 DoctorCli 来检查错误。
    • 这对 BTW 没有帮助。
    猜你喜欢
    • 2022-08-14
    • 1970-01-01
    • 1970-01-01
    • 2017-07-01
    • 2023-03-09
    • 2020-07-15
    • 2022-08-02
    • 1970-01-01
    • 2020-07-10
    相关资源
    最近更新 更多