React Native Build Tools版本错误解决方案
2017-07-25 17:21
701 查看
The SDK Build Tools revision X is too low for project ‘:react-native-picker’. Minimum require X
在React Native开发时,添加第三方工程时,遇到以下错误时,该如何解决呢?The SDK Build Tools revision (23.0.1) is too low for project ‘:react-native-picker’. Minimum required is 25.0.0 ##
解决方案一:
在根目录下的gradle文件中加入以下代码,这样就把每个自工程的buildToolsVersion的版本改为要求的版本了
subprojects { afterEvaluate {project -> if (project.hasProperty("android")) { android { compileSdkVersion 25 buildToolsVersion '25.0.0' } } } }
解决方案二:
在你的build.gradle文件中,如果使用的gradle版本过高,就会出现这种错误,那么相应的解决方案就是把gradle版本降下来
之前代码:
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' } }
之后代码:
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' } }
相关文章推荐
- react-native0.45版本build出错
- Windows版本搭建安装React Native环境配置 count not find tools.jar问题
- 【RN踩坑】React-native 0.45版本以上出现 boost_1_63_0.tar.gz等错误
- Ruby解决方案:The 'ffi' native gem requires installed build tools ; 含最新DevKit下载地址
- React Native编译错误:ReactAndroid:buildReactNdkLib FAILED
- Qt5.10提示android build tools intall 错误!解决方案
- React Native编译错误:ReactAndroid:buildReactNdkLib FAILED
- Ruby解决方案:The 'ffi' native gem requires installed build tools ; 含最新DevKit下载地址
- Android studio 升级3.0后ReactNative 打包报错 Could not find com.android.tools.build:gradle:3.0.0.
- React-Native从零到有——错误及解决方案
- Ruby解决方案:The 'ffi' native gem requires installed build tools ; 含最新DevKit下载地址
- react-native 打包遇到aapt错误解决方案
- [android] React Native reload 重加载 失效解决方案【RN 0.29 or RN 0.32版本】
- [react-native开发中错误]SDK location not found. Define
- eclipse运行错误提示 Failed to load D:\Android\sdk\build-tools\26.0.0-preview\lib\dx.jar
- React Native Could not expand ZIP错误信息
- 如何查看buildToolsVersion的版本
- 关于React Native 报Export declarations are not supported by current JavaScript version错误的解决问题
- 关于React Native 报Export declarations are not supported by current JavaScript version错误的解决问题
- reactnative导入了module包,在setting.gradle下的错误