You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Install.md
+78-71Lines changed: 78 additions & 71 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Add the required permissions in `AndroidManifest.xml`:
44
44
45
45
### Android (Optional)
46
46
47
-
If you've defined *[project-wide properties](https://developer.android.com/studio/build/gradle-tips.html)* (**recommended**) in your root `build.gradle`, this library will detect the presence of the following properties:
47
+
If you've defined _[project-wide properties](https://developer.android.com/studio/build/gradle-tips.html)_ (**recommended**) in your root `build.gradle`, this library will detect the presence of the following properties:
48
48
49
49
```groovy
50
50
buildscript {...}
@@ -89,86 +89,93 @@ Customization settings of dialog `android/app/res/values/themes.xml` (`android/a
89
89
1. Compile and have fun.
90
90
91
91
### Android
92
+
92
93
1. Add the following lines to `android/settings.gradle`:
93
-
```gradle
94
-
include ':react-native-image-picker'
95
-
project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android')
96
-
```
94
+
95
+
```gradle
96
+
include ':react-native-image-picker'
97
+
project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android')
98
+
```
97
99
98
100
2. Update the android build tools version to `2.2.+` in `android/build.gradle`:
99
-
```gradle
100
-
buildscript {
101
-
...
102
-
dependencies {
103
-
classpath 'com.android.tools.build:gradle:2.2.+' // <- USE 2.2.+ version
104
-
}
105
-
...
106
-
}
107
-
...
108
-
```
101
+
102
+
```gradle
103
+
buildscript {
104
+
...
105
+
dependencies {
106
+
classpath 'com.android.tools.build:gradle:2.2.+' // <- USE 2.2.+ version
107
+
}
108
+
...
109
+
}
110
+
...
111
+
```
109
112
110
113
3. Update the gradle version to `2.14.1` in `android/gradle/wrapper/gradle-wrapper.properties`:
0 commit comments