From 209ba82854403fee166f1d584702fe05401ab7ed Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Thu, 3 Sep 2020 14:22:32 +0800 Subject: [PATCH] packagingOptions libsdkcore --- android/app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) 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