Quellcode durchsuchen

[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 vor 6 Jahren
Ursprung
Commit
98e2dc2f18
1 geänderte Dateien mit 6 neuen und 13 gelöschten Zeilen
  1. 6
    13
      docs/docs/Installing.md

+ 6
- 13
docs/docs/Installing.md Datei anzeigen

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
 `MainActivity.java` should extend `com.reactnativenavigation.NavigationActivity` instead of `ReactActivity`.
164
 `MainActivity.java` should extend `com.reactnativenavigation.NavigationActivity` instead of `ReactActivity`.
172
 
165
 
187
 
180
 
188
 If you have any **react-native** related methods, you can safely delete them.
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
 This file is located in `android/app/src/main/java/com/<yourproject>/MainApplication.java`.
185
 This file is located in `android/app/src/main/java/com/<yourproject>/MainApplication.java`.
193
 	
186
 	
244
 
237
 
245
 ```
238
 ```
246
 
239
 
247
-### 8 RNN and React Native version
240
+### 7 RNN and React Native version
248
 
241
 
249
 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`.
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
 
261
 
269
 Now we need to instruct gradle how to build that flavor. To do so here two solutions:
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
 **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 .
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
 
274
 
282
 Now run `npm run android` to build your application
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
 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.
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
 
299
 
307
 **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.
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
 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:
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