Android App Bundle build Error: <fusing> element is missing the 'include' attribute
Android App Bundle build Error: <fusing> element is missing the 'include' attribute
我正在尝试开发具有动态功能的 android 应用程序。
我已将 "sample" 动态功能模块添加到项目中,当我尝试从 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').
动态功能模块清单
<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="false"
只需添加"dist:"
它应该看起来像这样:
<dist:module
dist:instant="false"
dist:onDemand="true"
dist:title="@string/title_sample">
<dist:fusing dist:include="false"/>
</dist:module>
使用最新版本bundletool, I was using older version (0.3.3) jar file from codelab
示例演示。这就是造成这个问题的原因。
使用跟随命令构建
java -jar ~/Downloads/bundletool-all-0.10.0.jar build-apks --bundle=./app/build/outputs/bundle/debug/app.aab --output=out.apks
注意:bundletool-all-0.10.0.jar 将是您最新的 jar 文件,您可以从提到的 link.
中获取它
我正在尝试开发具有动态功能的 android 应用程序。
我已将 "sample" 动态功能模块添加到项目中,当我尝试从 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').
动态功能模块清单
<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="false"
只需添加"dist:"
它应该看起来像这样:
<dist:module
dist:instant="false"
dist:onDemand="true"
dist:title="@string/title_sample">
<dist:fusing dist:include="false"/>
</dist:module>
使用最新版本bundletool, I was using older version (0.3.3) jar file from codelab 示例演示。这就是造成这个问题的原因。
使用跟随命令构建
java -jar ~/Downloads/bundletool-all-0.10.0.jar build-apks --bundle=./app/build/outputs/bundle/debug/app.aab --output=out.apks
注意:bundletool-all-0.10.0.jar 将是您最新的 jar 文件,您可以从提到的 link.
中获取它