p***@foxmail.com
p***@foxmail.com
  • 发布:2022-08-26 12:17
  • 更新:2022-12-05 16:47
  • 阅读:645

用HBuilderX3.5.3打包google aab,targetsdk填31,提示打包失败,如何解?

分类:HBuilderX

[PackagePath]/app/AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processReleaseMainManifest'.

    Manifest merger failed with multiple errors, see logs

2022-08-26 12:17 负责人:无 分享
已邀请:
p***@foxmail.com

p***@foxmail.com (作者)

换成3.5.5-alpha打包仍是这样
如何在HBuilderX中声明 android:exported ?

DCloud_Android_YJC

DCloud_Android_YJC

HBuilderX 3.6.1-alpha 已更新微博SDK,适配Android12

  • 我家有只汉斯猫

    你好,请问下是否可以更新 paypal的sdk,适配android12?

    2022-09-24 15:10

1***@qq.com

1***@qq.com - 何以解忧,唯有暴富

HBuilderX3.6.5 打包google aab,targetsdk填31 打包失败

[PackagePath]/app/AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
[PackagePath]/app/AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processReleaseMainManifest'.

    Manifest merger failed with multiple errors, see logs

  • Try:

    Run with --debug option to get more log output.
    Run with --scan to get full insights.

1***@qq.com

1***@qq.com - 何以解忧,唯有暴富

HBuilderX3.6.5 打包google aab,targetsdk填31 打包失败

[PackagePath]/app/AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
[PackagePath]/app/AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processReleaseMainManifest'.

    Manifest merger failed with multiple errors, see logs

  • Try:

    Run with --debug option to get more log output.
    Run with --scan to get full insights.

要回复问题请先登录注册