Android App Bundle 构建错误 : <fusing> element is missing the 'include' attribute

标签 android android-studio apk build.gradle android-app-bundle

我正在尝试开发具有动态功能的 Android 应用。

我已将“示例”动态功能模块添加到项目中,当我尝试从 Android Studio 构建“Android App Bundle”时,出现以下错误,

Caused by: java.util.concurrent.ExecutionException: com.android.tools.build.bundletool.exceptions.manifest.ManifestFusingException$FusingMissingIncludeAttribute: <fusing> element is missing the 'include' attribute (split: 'sample').

动态特征模块 list

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dist="http://schemas.android.com/apk/distribution"
package="com.features.dynamic.sample">
<dist:module
    dist:instant="false"
    dist:onDemand="true"
    dist:title="@string/title_sample">
    <dist:fusing include="false" />
</dist:module>
</manifest>

最佳答案

dist:include="假"

只需添加“dist:”

关于Android App Bundle 构建错误 : <fusing> element is missing the 'include' attribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50869694/

相关文章:

android - 在 WindowManager 中显示可能来自 "out of screen"的 View

java - 类未找到异常 : Didn't find class "java.sql.SQLType" on path: DexPathList

安卓工作室 3.3 : can't see layout preview

android - 如何在git上添加proguard映射文件(在gitignore、Android Studio中排除)

android - 在设备上的 Android 应用程序中创建 APK 文件?

android - 错误 : Source path does not exist: resources\android\icon\drawable-hdpi-icon. png

android - 如何将文件写入内部存储(/storage/sdcard1)?

android - 如何以编程方式在 R.color 中设置颜色

android - Android Studio更新 list 错误

java - 使用 android studio 时 apk 在设备上持续崩溃