找不到构建工具版本23.0.1 [英] Failed to find Build Tools revision 23.0.1

查看:129
本文介绍了找不到构建工具版本23.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用react-native构建我的第一个应用程序.

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

我确定我从第二个链接安装了所有要求,但是当我尝试使用react-native run-android运行我的应用程序时,出现以下错误:

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:

我在运行genymotion时执行了此命令.

I executed this command while running genymotion.

这就是我在Android SDK中安装的所有内容:

This is all that I have installed in Android SDK:

我尝试安装Android构建工具23.0.1,但出现此错误:

I tried to install Android build tools 23.0.1 but I get this error:

我该怎么办?

推荐答案

我遇到了同样的问题,并且通过以下操作解决了该问题:

I faced the same problem and I solved it doing the following:

转到/home/ [USER] /Android/Sdk/tools 并执行:

Go to /home/[USER]/Android/Sdk/tools and execute:

$ android list sdk -a

$android list sdk -a

哪个将显示一个列表,如:

Which will show a list like:

  1. Android SDK工具,修订版24.0.2
  2. Android SDK平台工具,版本23.0.2
  3. Android SDK平台工具,版本23.0.1

...还有更多

然后,执行命令(注意!在您的计算机上,第三个选项可能有所不同):

Then, execute the command (attention! at your computer the third option may be different):

$ android update sdk -a -u -t 3

它将安装23.0.1 SDK Platform-tools组件.

It will install the 23.0.1 SDK Platform-tools components.

尝试再次构建您的项目.

Try to build your project again.

这篇关于找不到构建工具版本23.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆