9:59 Gradle sync failed: Cause: org.xml.sax.SAXParseException; systemId: file:/D:/xxx/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml; lineNumber: 45; columnNumber: 26; Attribute "name" bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "application".
Attribute "name" bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "application".
Consult IDE log for more details (Help | Show Log) (24 s 939 ms)
WARNING: 如果不按照这个表格,我们将无法帮助你,并将忽略你的问题。
你的运行环境
cordova -v
):9.0.0 (cordova-lib@9.0.1)cordova platform ls
): Installed platforms: android 8.1.0Ionic Version (if using Ionic)
(_) (_) | |/ | '_ | |/ _| | | () | | | | | ( |_|_/|| |||\| CLI 6.5.0
期望效果
构建成功
实际效果
构建Android 失败
重现步骤
背景
Debug logs
9:59 Gradle sync failed: Cause: org.xml.sax.SAXParseException; systemId: file:/D:/xxx/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml; lineNumber: 45; columnNumber: 26; Attribute "name" bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "application". Attribute "name" bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "application". Consult IDE log for more details (Help | Show Log) (24 s 939 ms)