浏览代码

[v2][Android] Remove deprecated enableAapt2 property from docs (#4343)

Adding `android.enableAapt2=false` broke the build from Android Studio with an error `Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'`
Both command line and Android Studio builds worked fine after removing it.
Ceyhun Ozugur 6 年前
父节点
当前提交
98e2dc2f18
共有 1 个文件被更改,包括 6 次插入13 次删除
  1. 6
    13
      docs/docs/Installing.md

+ 6
- 13
docs/docs/Installing.md 查看文件

@@ -159,14 +159,7 @@ dependencies {
159 159
 }
160 160
 ```
161 161
 
162
-### 5. Update `gradle.properties` and disable incremental resource processing
163
-
164
-```diff
165
-+# Disable incremental resource processing as it broke release build
166
-+android.enableAapt2=false
167
-```
168
-
169
-### 6. Update `MainActivity.java`
162
+### 5. Update `MainActivity.java`
170 163
 
171 164
 `MainActivity.java` should extend `com.reactnativenavigation.NavigationActivity` instead of `ReactActivity`.
172 165
 
@@ -187,7 +180,7 @@ This file is located in `android/app/src/main/java/com/<yourproject>/MainActivit
187 180
 
188 181
 If you have any **react-native** related methods, you can safely delete them.
189 182
 
190
-### 7. Update `MainApplication.java`
183
+### 6. Update `MainApplication.java`
191 184
 
192 185
 This file is located in `android/app/src/main/java/com/<yourproject>/MainApplication.java`.
193 186
 	
@@ -244,7 +237,7 @@ import java.util.List;
244 237
 
245 238
 ```
246 239
 
247
-### 8 RNN and React Native version
240
+### 7 RNN and React Native version
248 241
 
249 242
 react-native-navigation supports multiple React Native versions. Target the React Native version required by your project by specifying the RNN build flavor in `android/app/build.gradle`.
250 243
 
@@ -268,7 +261,7 @@ RNN only support react-native 0.51 (`"reactNative51"`), 0.55 (`"reactNative55"`)
268 261
 
269 262
 Now we need to instruct gradle how to build that flavor. To do so here two solutions:
270 263
 
271
-#### 8.1 Build app with gradle command 
264
+#### 7.1 Build app with gradle command 
272 265
 
273 266
 **prefered solution** The RNN flavor you would like to build is specified in `app/build.gradle`. Therefore in order to compile only that flavor, instead of building your entire project using `./gradlew assembleDebug`, you should instruct gradle to build the app module: `./gradlew app:asembleDebug`. The easiest way is to add a package.json command to build and install your debug Android APK .
274 267
 
@@ -281,7 +274,7 @@ Now we need to instruct gradle how to build that flavor. To do so here two solut
281 274
 
282 275
 Now run `npm run android` to build your application
283 276
 
284
-#### 8.2 Ignore other RNN flavors
277
+#### 7.2 Ignore other RNN flavors
285 278
 
286 279
 If you don't want to run `npm run android` and want to keep the default `react-native run-android` command, you need to specify to graddle to ignore the other flavors RNN provides.
287 280
 
@@ -306,7 +299,7 @@ To do so edit `android/build.gradle` and add:
306 299
 
307 300
 **Note**: As more build variants come available in the future, you will need to adjust the list (`names.contains("reactNative51") || names.contains("reactNative55")`). This is why we recommend the first solution.
308 301
 
309
-### 9. Force the same support library version across all dependencies (optional)
302
+### 8. Force the same support library version across all dependencies (optional)
310 303
 
311 304
 Some of your dependencies might require a different version of one of Google's support library packages. This results in compilation errors similar to this:
312 305