0

将包含本机代码(嵌入为)的库添加到项目后,我的应用程序构建在运行任务.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))
4

1 回答 1

1

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

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

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

于 2016-06-03T20:24:06.817 回答