0
点赞
收藏
分享

微信扫一扫

缩减apk体积。Your App Bundle contains the following configurations where the initial install would exceed


首先如果你接入了相芯或者别的sdk的功能。。我们只接了美颜功能。他提供了多个bundle包。那么可以按照这个教程

经过和客服确认

如果只用美颜,只需要ai_face_processor_lite.bundle和face_beautification.bundle

那么根据项目里面的版本不同。忽略列表可能是会随时变化的

在app级别的build.gradle 目录里面的android节点下面添加

applicationVariants.all { variant ->
variant.mergeAssetsProvider.configure {
doLast {
delete(fileTree(dir: outputDir,
includes: ['model/ai_bgseg_green.bundle',
'model/ai_face_processor_lite.bundle',
'model/ai_hairseg.bundle',
'model/ai_hand_processor.bundle',
'model/ai_human_processor_mb_fast.bundle',
'graphics/controller_cpp.bundle',
'graphics/fuzzytoonfilter.bundle',
'graphics/tongue.bundle',
'graphics/fxaa.bundle']))
}
}
}

如何去查看有哪些bundle呢

也很简单

缩减apk体积。Your App Bundle contains the following configurations where the initial install would exceed_android

 

选中apk然后点击assets/model 或者graphics就可以看到了

举报
0 条评论