android - Dexguard crashing after library added with native code -
after adding library project contains native code (embedded .so
), app build started crash when running dexguard<flavor><buildtype>
task. error says:
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 length of original: 243 > 242))
that might happen when dexguard obfuscates native methods.
the latest version 7.1.29 should fix issue, please give try.
edit: troubleshooting section of dexguard manual describes work-arounds when happens. keep names of native methods.