IONIC5 推送服务 Android构建出错

用户9658997
5年前 70 1
  • 插件版本:

  • 平台(Android / iOS):Android

  • Cordova version (cordova -v):9.0.0 (cordova-lib@9.0.1)

  • Cordova platform version (cordova platform ls): Installed platforms: android 8.1.0

  • Ionic Version (if using Ionic)

    _ _
    () ___ _ __ () _
    | |/ _ | '_ | |/ **|
    | | (_) | | | | | (

    ||_**/|| |||___| CLI 6.5.0

期望效果

构建成功

实际效果

构建Android 失败

重现步骤

  1. ionic cap sync
  2. ionic cap open android
    打开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)


插接这个 AndroidManifest.xml 会添加application 节点报错

1个回答

热门排序
  • ionic5暂时不支持,目前只支持到ionic3

gptbots-widget