找不到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",
...
}