diff --git a/android/app/build.gradle b/android/app/build.gradle index 0f9e921..bc3291b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -169,6 +169,11 @@ android { pickFirst "lib/arm64-v8a/libc++_shared.so" pickFirst "lib/x86/libc++_shared.so" pickFirst "lib/x86_64/libc++_shared.so" + // libsdkcore.so是被加固过的,不能被压缩,否则加载动态库时会报错 + doNotStrip "*/x86/libsdkcore.so" + doNotStrip "*/x86_64/libsdkcore.so" + doNotStrip "*/armeabi-v7a/libsdkcore.so" + doNotStrip "*/arm64-v8a/libsdkcore.so" } // applicationVariants are e.g. debug, release