Gradle error: Could not find any matches for com.android.tools.build:gradle:2.2.+ [duplicate]
If you don't want to wait until this library will release fixed version, here is how you can fix it:
Just add it to your build.gradle under subprojects section in the root (not app/gradle)
subprojects { if (project.name.contains('react-native-image-picker') || project.name.contains('react-native-vector-icons')) { buildscript { repositories { jcenter() maven { url "https://dl.bintray.com/android/android-tools/" } } } }}
credit goes to https://github.com/akolpakov
This is a new issue which was addressed in the new version of react-native-image-pickerGo to your root folder and reinstall react-native-image-picker:
npm install --save react-native-image-picker
Then go to your root folder and ensure that your react-native-image-picker is on version "^0.27.2"
The react-native-vector-icons package also encounters the same problem.
Is that caused by these two broken repositories?
https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xmlhttps://jcenter.bintray.com/com/android/tools/build/gradle/
They both response "The requested path was not found."
Edit
Based on the log information:
project :react-native-vector-icons com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not find any matches for com.android.tools.build:gradle:2.3.+ as no versions of com.android.tools.build:gradle are available.
search the '2.3.+' and replace it with explicit version # (e.g. 2.3.0)The problem will be solved.
I have read the suggestion from Android about avoiding the use of + in version code, that suggestion might be enforced now.