安装另一个Android SDK版本

huangapple go评论55阅读模式
英文:

Installing another Android SDK version

问题

我遇到了以下问题:

C:\Users\ewgof\source\TargetSum> npx react-native doctor
通用
 ✓ Node.js
 ✓ yarn

Android
 ✓ JDK
 ✓ Android Studio - 用于在Android上构建和安装您的应用程序
 ✖ Android SDK - 用于在Android上构建和安装您的应用程序
   - 找到的版本:N/A
   - 支持的版本:33.0.0
 ✓ ANDROID_HOME

错误:1
警告:0

用法
 › 按f尝试修复问题。
 › 按e尝试修复错误。
 › 按w尝试修复警告。
 › 按Enter退出。

Android Studio显示我有Android SDK Build-Tools 34:

[![enter image description here][1]][1]

因此,我尝试安装Android SDK版本33,如下所示:

C:\Program Files (x86)\Android\android-sdk\cmdline-tools.0\bin> .\sdkmanager.bat --install "cmdline-tools;33.0.0"
警告:找不到软件包'cmdline-tools;33.0.0'。

有关获取SDK版本33的建议吗?

我尝试在SDK平台上检查“显示软件包详细信息”,但在那里找不到Android SDK Build:

[![enter image description here][2]][2]

通过单击SDK工具选项卡而不是SDK平台,我成功进入了与您显示的类似的视图:

[![SDK工具][3]][3]

奇怪的是,似乎我已经安装了版本33。

  [1]: https://i.stack.imgur.com/KUMob.png
  [2]: https://i.stack.imgur.com/XmYmO.png
  [3]: https://i.stack.imgur.com/eJJ33.png
英文:

I'm getting the following:

C:\Users\ewgof\source\TargetSum> npx react-native doctor
Common
 ✓ Node.js
 ✓ yarn

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: N/A
   - Version supported: 33.0.0
 ✓ ANDROID_HOME

Errors:   1
Warnings: 0

Usage
 › Press f to try to fix issues.
 › Press e to try to fix errors.
 › Press w to try to fix warnings.
 › Press Enter to exit.

Android Studio says that I have Android SDK Build-Tools 34:

安装另一个Android SDK版本

Therefore, I'm trying to install the Android SDK version 33 like so:

C:\Program Files (x86)\Android\android-sdk\cmdline-tools.0\bin> .\sdkmanager.bat --install "cmdline-tools;33.0.0"
Warning: Failed to find package 'cmdline-tools;33.0.0'

Any suggestions for getting version 33 of the SDK to install?

I've tried checking the Show Package Details on the SDK Platforms but I'm not seeing Android SDK Build there:

安装另一个Android SDK版本

I was able to get to a view similar to what you are showing by clicking on the SDK Tools tab instead of SDK Platforms:

安装另一个Android SDK版本

Strangely, it appears that I already have version 33 installed.

答案1

得分: 0

点击SDK平台
安装另一个Android SDK版本

勾选“显示包详细信息”

安装另一个Android SDK版本

英文:

Click on SDK Platforms
安装另一个Android SDK版本

Check the "Show Package Details"

安装另一个Android SDK版本

huangapple
  • 本文由 发表于 2023年3月7日 19:52:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/75661643.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定