A problem occurred configuring project ':app'. > failed to find Build Tools revision 23.0.1
2018-03-15 16:20
656 查看
在初学react-native时,执行命令react-native run-android会报如下错误:react-native run-androidStarting 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
解决办法: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装上估计也可以的。
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
解决办法: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装上估计也可以的。
相关文章推荐
- 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
- Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android
- Failed to sync Gradle project'xxxxxxx',failed to find Build Tools revision 23.0.0 rc2
- failed to find Build Tools revision 23.0.0 rc2 Install Build Tools 23.0.0 rc2 and sync project
- Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android
- 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
- Error:Failed to find Build Tools revision 24.0.1 <a href="install.build.tools">Install Build Tools 2
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.0.0
- gradle:failed to find Build Tools revision 23.0.1
- 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
- 升级Android Studio3.0 Error:A problem occurred configuring project ':app'. > android-apt plugin is inc
- Android Studio failed to find build tools revision 19.1.0 问题
- AndroidStudio 问题Gradle sync failed: failed to find Build Tools revision 23.0.0 rc2
- 解决android Studio 安装完运行提示failed to find build tools revision 24.0.2
- [Android][AS]Error:Failed to find Build Tools revision 26.0.2
- Gradle sync failed: failed to find Build Tools revision 23.0.3 解决
- 开发错误记录3 Error:failed to find Build Tools revision 23.0.2 rc2