找不到com.android.tools.build:gradle:2.3.+的任何匹配项,因为没有可用的com.android.tools.build:gradle版本 [英] Could not find any matches for com.android.tools.build:gradle:2.3.+ as no versions of com.android.tools.build:gradle are available

查看:97
本文介绍了找不到com.android.tools.build:gradle:2.3.+的任何匹配项,因为没有可用的com.android.tools.build:gradle版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在测试我的React本机应用程序时遇到问题,今天早上它可以正常工作,但是当我现在对其进行测试时,我会收到此错误:

hi i have a probleme with testing my react native app, this morning it works fine , but when i test it now i get this error:

Could not resolve all files for configuration ':react-native-vector-icons:classpath'.

找不到与com.android.tools.build:gradle:2.3.+的任何匹配项,因为没有可用的com.android.tools.build:gradle版本. 在以下位置搜索: https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml https://jcenter.bintray.com/com/android/tools/build/gradle/ 要求者: 项目:反应本机向量图标 谁能帮助我,谢谢

Could not find any matches for com.android.tools.build:gradle:2.3.+ as no versions of com.android.tools.build:gradle are available. Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml https://jcenter.bintray.com/com/android/tools/build/gradle/ Required by: project :react-native-vector-icons could anyone helps me and thanks

推荐答案

Node不善于确定何时有较新版本的已使用软件包. 在这种情况下,package.json文件中引用的react-native-vector-icons版本使用的是gradle的旧版本.

Node is not good at figuring out when there are newer versions of an already used package. In this case, the version of react-native-vector-icons being referenced in the package.json file uses an older version of gradle.

要解决此问题,请先尝试:

To fix this, first try:

npm install react-native-vector-icons -save

如果这不起作用(在我看来不是),请进入您的package.json文件,然后自行将软件包更改为最新版本.

If this doesn't work, which didn't in my case, go into your package.json file and change the package to the latest version yourself.

react-native-vector-icons 获取最新版本

"dependencies": {
    ...

    "react-native-vector-icons": "^6.1.0",

    ...
 }

这篇关于找不到com.android.tools.build:gradle:2.3.+的任何匹配项,因为没有可用的com.android.tools.build:gradle版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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