Skip to content

Commit 209ba82

Browse files
committed
packagingOptions libsdkcore
1 parent 26f7004 commit 209ba82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ android {
169169
pickFirst "lib/arm64-v8a/libc++_shared.so"
170170
pickFirst "lib/x86/libc++_shared.so"
171171
pickFirst "lib/x86_64/libc++_shared.so"
172+
// libsdkcore.so是被加固过的,不能被压缩,否则加载动态库时会报错
173+
doNotStrip "*/x86/libsdkcore.so"
174+
doNotStrip "*/x86_64/libsdkcore.so"
175+
doNotStrip "*/armeabi-v7a/libsdkcore.so"
176+
doNotStrip "*/arm64-v8a/libsdkcore.so"
172177
}
173178

174179
// applicationVariants are e.g. debug, release

0 commit comments

Comments
 (0)