如何解决任务“:app:processDebugManifest”的执行失败。反应原生构建的问题。
PS C:\Users\TODAYS1\Desktop\React-Native\docapp1> react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
(node:6564) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Jetifier found 1590 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...
> Configure project :@react-native-firebase_firestore
:@react-native-firebase_firestore package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\firestore\package.json
:react-native-firebase_app package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\app\package.json
:@react-native-firebase_firestore:firebase.bom using default value: 26.5.0
:@react-native-firebase_firestore package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\firestore\package.json
:@react-native-firebase_firestore:version set from package.json: 10.8.1 (10,8,1 - 10008001)
:@react-native-firebase_firestore:android.compileSdk using custom value: 29
:@react-native-firebase_firestore:android.targetSdk using custom value: 29
:@react-native-firebase_firestore:android.minSdk using custom value: 29
:@react-native-firebase_firestore:reactNativeAndroidDir C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\react-native\android
> Configure project :react-native-fetch-blob
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 5.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
> Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_app:firebase.bom using default value: 26.5.0
:react-native-firebase_app:play.play-services-auth using default value: 19.0.0
:react-native-firebase_app package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_app:version set from package.json: 10.8.1 (10,8,1 - 10008001)
:react-native-firebase_app:android.compileSdk using custom value: 29
:react-native-firebase_app:android.targetSdk using custom value: 29
:react-native-firebase_app:android.minSdk using custom value: 29
:react-native-firebase_app:reactNativeAndroidDir C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\react-native\android
> Configure project :react-native-firebase_auth
:react-native-firebase_auth package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\auth\package.json
:react-native-firebase_app package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_auth:firebase.bom using default value: 26.5.0
:react-native-firebase_auth package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\auth\package.json
:react-native-firebase_auth:version set from package.json: 10.8.1 (10,8,1 - 10008001)
:react-native-firebase_auth:android.compileSdk using custom value: 29
:react-native-firebase_auth:android.targetSdk using custom value: 29
:react-native-firebase_auth:android.minSdk using custom value: 29
:react-native-firebase_auth:reactNativeAndroidDir C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\react-native\android
> Configure project :react-native-firebase_firestore
:react-native-firebase_firestore package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\firestore\package.json
:react-native-firebase_app package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_firestore:firebase.bom using default value: 26.5.0
:react-native-firebase_firestore package.json found at C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\@react-native-firebase\firestore\package.json
:react-native-firebase_firestore:version set from package.json: 10.8.1 (10,8,1 - 10008001)
:react-native-firebase_firestore:android.compileSdk using custom value: 29
:react-native-firebase_firestore:android.targetSdk using custom value: 29
:react-native-firebase_firestore:android.minSdk using custom value: 29
:react-native-firebase_firestore:reactNativeAndroidDir C:\Users\TODAYS1\Desktop\React-Native\docapp1\node_modules\react-native\android
> Configure project :react-native-locale-detector
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 5.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
> Task :app:processDebugManifest FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings
161 actionable tasks: 4 executed, 157 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 20s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
这是我在构建 React Native 应用程序时遇到的错误。 这个错误是意外的,因为我没有对任何 XML 文件进行任何更改