react-native-image-crop-picker使用
作者:
Senvid丶 | 来源:发表于
2018-01-26 11:31 被阅读0次《安卓环境配置》
1.安装安卓SDK,版本27+,build-tools 版本27+(必须)
2.在android/build.gradle中添加
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url "https://jitpack.io" }
}
}
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion '27.0.0'
}
}
}
}
3.在android/app/build.gradle中添加
defaultConfig {
...
vectorDrawables.useSupportLibrary = true
...
}
本文标题:react-native-image-crop-picker使用
本文链接:https://www.haomeiwen.com/subject/xrviaxtx.html
网友评论