In my app / build folder, I saw that the .so file is also between / transforms / mergeJniLibs and intermediate / transforms / stripDebugSymbol. The md5sum of the .so file in mergeJniLibs corresponds to the original amount of the .so file. The md5sum of the .so file in stripDebugSymbol was the one that was different. Further research forced me to add this to the android section of the build.gradle module (see also: PackagingOptions doNotStrip documentation
):
android {
.
.
packagingOptions {
doNotStrip "**/*.so"
}
.
}
After gradle synchronization, cleaning and rebuilding, md5sum.so in app / build / output / apk / debug corresponds to the original md5sum.
source
share