Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IncompatibleClassChangeError #24

Open
lsjwzh opened this issue Mar 8, 2017 · 1 comment
Open

java.lang.IncompatibleClassChangeError #24

lsjwzh opened this issue Mar 8, 2017 · 1 comment

Comments

@lsjwzh
Copy link

lsjwzh commented Mar 8, 2017

    try {
        Method originMethod = View.class.getDeclaredMethod("requestLayout");
        Method hookMethod = Profiling.class.getDeclaredMethod("requestLayoutHook", Object.class);
        HookManager.getDefault().hookMethod(originMethod, hookMethod);
    } catch (NoSuchMethodException e) {
        e.printStackTrace();
    }

。。。。。。

public static void requestLayoutHook(Object view) {
    HookManager.getDefault().callSuper(view);
}

此时在有些调用requestlayout的地方,会有以下异常
java.lang.IncompatibleClassChangeError:

@lsjwzh
Copy link
Author

lsjwzh commented Mar 8, 2017

Android 4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant