diff --git a/projects/sdk/core/manager/src/main/java/com/tencent/shadow/core/manager/installplugin/ODexBloc.java b/projects/sdk/core/manager/src/main/java/com/tencent/shadow/core/manager/installplugin/ODexBloc.java index e717b38ea..91e5457b3 100644 --- a/projects/sdk/core/manager/src/main/java/com/tencent/shadow/core/manager/installplugin/ODexBloc.java +++ b/projects/sdk/core/manager/src/main/java/com/tencent/shadow/core/manager/installplugin/ODexBloc.java @@ -31,13 +31,13 @@ public class ODexBloc { private static ConcurrentHashMap sLocks = new ConcurrentHashMap<>(); /** - * DexClassLoader的optimizedDirectory参数从API 26起就无效了 + * DexClassLoader的optimizedDirectory参数从API 27起就无效了 * 此方法统一判断这一特性是否生效 * * @return true表示ODexBloc还有作用 */ public static boolean isEffective() { - return Build.VERSION.SDK_INT < Build.VERSION_CODES.O; + return Build.VERSION.SDK_INT < Build.VERSION_CODES.O_MR1; } public static void oDexPlugin(File apkFile, File oDexDir, File copiedTagFile) throws InstallPluginException {