无法找到构建工具修订版 23.0.1 [英] Failed to find Build Tools revision 23.0.1
问题描述
我正在尝试使用 react-native 构建我的第一个应用.
我正在关注这两个教程:
我在运行 genymotion 时执行了这个命令.
这是我在 Android SDK 中安装的全部内容:
我尝试安装 Android 构建工具 23.0.1,但出现此错误:
我该怎么办?
解决方案我遇到了同样的问题,我通过以下方式解决了它:
转到/home/[USER]/Android/Sdk/tools并执行:
<块引用>$android list sdk -a
将显示如下列表:
- Android SDK 工具,修订版 24.0.2
- Android SDK 平台工具,修订版 23.0.2
- Android SDK 平台工具,修订版 23.0.1
...还有更多
然后,执行命令(注意!在你的电脑上第三个选项可能不同):
<块引用>$android 更新 sdk -a -u -t 3
它将安装 23.0.1 SDK Platform-tools 组件.
尝试再次构建您的项目.
I am trying to build my first app with react-native.
I am following these 2 tutorial:
- https://facebook.github.io/react-native/docs/getting-started.html#content
- https://facebook.github.io/react-native/docs/android-setup.html
I am sure that I installed all the requirements from the second link but when I try running my app with
react-native run-android
, I get the following error:I executed this command while running genymotion.
This is all that I have installed in Android SDK:
I tried to install Android build tools 23.0.1 but I get this error:
What should I do?
解决方案I faced the same problem and I solved it doing the following:
Go to /home/[USER]/Android/Sdk/tools and execute:
$android list sdk -a
Which will show a list like:
- Android SDK Tools, revision 24.0.2
- Android SDK Platform-tools, revision 23.0.2
- Android SDK Platform-tools, revision 23.0.1
... and many more
Then, execute the command (attention! at your computer the third option may be different):
$android update sdk -a -u -t 3
It will install the 23.0.1 SDK Platform-tools components.
Try to build your project again.
这篇关于无法找到构建工具修订版 23.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!