A problem occurred configuring project ':app'. > failed to find Build Tools revision 23.0.1
来源:互联网 发布:身份证p图软件 编辑:程序博客网 时间:2024/05/04 17:37
在初学react-native时,执行命令react-native run-android会报如下错误:
react-native run-android
Starting JS server...Building and installing the app on the device (cd android && ./gradlew installDebug...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> failed to find Build Tools revision 23.0.1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6.292 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn xterm ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
解决办法:android SDK版本不对应,本文23.0.1版本对不上,用Android SDK Manager一查看果然如此,安装了23.0.2和23.0.3,就是唯独没有安装23.0.1。所以我就把android/app/build.gradle文件中buildToolsVersion "23.0.1"改为"23.0.2",然后就测试通过了。本人觉得,如果把23.0.1 SDK装上估计也可以的。
0 1
- A problem occurred configuring project ':app'. > failed to find Build Tools revision 23.0.1
- Error:A problem occurred configuring project ':app'. > failed to find Build
- Failed to sync Gradle project'xxxxxxx',failed to find Build Tools revision 23.0.0 rc2
- Error:Failed to find Build Tools revision 24.0.1 <a href="install.build.tools">Install Build Tools 2
- failed to find Build Tools revision 23.0.0 rc2 Install Build Tools 23.0.0 rc2 and sync project
- failed to find Build Tools revision 23.0.2
- Error:failed to find Build Tools revision 23.0.2
- failed to find Build Tools revision 23.0.0
- Error:failed to find Build Tools revision 23.0.3
- Error:failed to find Build Tools revision 21.1.1
- Failed to find Build Tools revision 26.0.1
- Error:A problem occurred configuring project ':app'.
- Error:A problem occurred configuring project ':app'.
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.0.0
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.1.2
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.0.0
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.0.0
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.0.0
- JavaCC -- 生成C++代码
- Redis和Memcache的对比及选择
- Android View measure流程详解
- hdu 4288 Coder
- java中static修饰特殊的类
- A problem occurred configuring project ':app'. > failed to find Build Tools revision 23.0.1
- Mysql基本命令
- 实现微信翻页效果
- Oracle字符集与字符类型存储空间占用
- eclipse 插件,直接打开文件路径
- Android Source Code Complie
- 基于Ubuntu+Owncloud的私有云网盘
- Android 第一次接触ViewFilpper
- 【蓝桥杯】危险系数-JAVA语言描述