React Native Gradle ImagePicker wont build

  • A+

When trying to build I get this error:

Could not find any matches for as no versions of are available. Searched in the following locations: Required by: project :react-native-image-picker

However when I change the tools version in the Project to 2.2.3 I get this error:

Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.


Edit your build.gradle as following.

subprojects { subproject ->     if ('react-native-image-picker')){         buildscript {             repositories {                 maven { url ""  }             }         }     } } 


:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: