Skip to content

关于旧版Xposed的兼容建议 #33

Description

@yihongyuelan

问题:
在旧版手机(Android 5.1.1)和旧版xposed(version 80)上无法正常执行,提示"java.lang.NoSuchMethodError: No static method findClassIfExists(Ljava/lang/String;Ljava/lang/ClassLoader;)"

分析:
在旧版XposedBridge的XposedHelpers类中,没有findClassIfExists这个方法,而findClassIfExists这个方法实际上只是对findClass多了一层try catch而已

建议:
在xposedmodule的PackerInfo.kt#L83建议直接使用findClass,代码里面加上try catch即可

BR

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions