Could not resolve all dependenci
2017-12-12 本文已影响0人
有无01
react-native run-android报错Could not resolve all dependencies for configuration ':react-native-image-crop-picker:_debugPublishCopy'.
步骤:
1.修改项目/android/build.gradle 把com.android.tools.build:gradle:2.2.3改成com.android.tools.build:gradle:2.3.3
如果再报The SDK Build Tools revision (23.0.1) is too low for project ':app'. Minimum required is 25.0.0则如下
2.修改项目/android/app/build.gradle 为buildToolsVersion "23.0.1"为buildToolsVersion "25.0.1"
3.修改项目/node_modules/react-native-image-crop-picker/android/build.gradle 把全步27替换为26,把compile 'com.github.yalantis:ucrop:2.2.1-native'替换为compile 'com.yalantis:ucrop:2.2.0-native'