英文:
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:
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:
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:
Strangely, it appears that I already have version 33 installed.
答案1
得分: 0
勾选“显示包详细信息”
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论