gpt4 book ai didi

android - 添加 native 代码的库后 Dexguard 崩溃

转载 作者:行者123 更新时间:2023-12-03 05:13:45 25 4
gpt4 key购买 nike

在将包含 native 代码(嵌入为 .so )的库添加到项目后,我的应用程序构建在运行 dexguard<Flavor><BuildType> 时开始崩溃任务。
错误说:

Caused by: java.io.IOException: Can't read [/home/user/project/app/build/intermediates/transforms/mergeJniLibs/flavor/buildType/folders/2000/1f/main(;;;;;;lib/*/*.so,lib/*/gdb*)] (Can't write resource [lib/x86/filecointainedonlibrary.so] (New string section exceeds the length of the original: 243 > 242))

最佳答案

当 DexGuard 混淆您的 native 方法时,可能会发生这种情况。

最新版本 7.1.29 应该可以解决这个问题,请尝试一下。

编辑:DexGuard 手册的故障排除部分描述了发生这种情况时的解决方法。他们基本上保留了 native 方法的名称。

关于android - 添加 native 代码的库后 Dexguard 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37579451/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com