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

升级了下ASM6 有需要的自取 #56

Open
liujianAndroid opened this issue Sep 2, 2021 · 14 comments
Open

升级了下ASM6 有需要的自取 #56

liujianAndroid opened this issue Sep 2, 2021 · 14 comments

Comments

@liujianAndroid
Copy link

代码见 https://github.com/liujianAndroid/lancet
使用方式如下

repositories {
mavenCentral()
}
classpath 'com.bytedance.tools.lancet:lancet-plugin-asm6:1.0.0'

@spysoos
Copy link

spysoos commented Sep 29, 2021

请问这个库支持Kotlin吗?

@liujianAndroid
Copy link
Author

请问这个库支持Kotlin吗?

@spysoos 支持的

@spysoos
Copy link

spysoos commented Oct 7, 2021

你好,如果我想拦截所有view 的setVisibility(Int) 方法,可行吗?

我的写法是这样的,但是不行
@TargetClass(value = "android.view.View", scope = Scope.ALL) @Insert(value = "setVisibility", mayCreateSuper = true) public void setVisibility(int visibility) { Log.e("xxx3", "setVisibility " + This.get()); Origin.callVoid(); }

是哪里我写错了吗?

@spysoos
Copy link

spysoos commented Oct 7, 2021

@liujianAndroid 我用的是你上面的库

@liujianAndroid
Copy link
Author

你好,如果我想拦截所有view 的setVisibility(Int) 方法,可行吗?

我的写法是这样的,但是不行 @TargetClass(value = "android.view.View", scope = Scope.ALL) @Insert(value = "setVisibility", mayCreateSuper = true) public void setVisibility(int visibility) { Log.e("xxx3", "setVisibility " + This.get()); Origin.callVoid(); }

是哪里我写错了吗?

@spysoos 不在Apk内的类 要把@insert 换成 @Proxy

@spysoos
Copy link

spysoos commented Oct 8, 2021

你好,如果我想拦截所有view 的setVisibility(Int) 方法,可行吗?
我的写法是这样的,但是不行 @TargetClass(value = "android.view.View", scope = Scope.ALL) @Insert(value = "setVisibility", mayCreateSuper = true) public void setVisibility(int visibility) { Log.e("xxx3", "setVisibility " + This.get()); Origin.callVoid(); }
是哪里我写错了吗?

@spysoos 不在Apk内的类 要把@insert 换成 @Proxy

改成Proxy也是不行的 你有试过吗?

@spysoos
Copy link

spysoos commented Oct 8, 2021

@liujianAndroid 方便留下联系方式吗 请你帮忙解决一下我的问题 我已经弄了快一个星期了...

@liujianAndroid
Copy link
Author

@liujianAndroid 方便留下联系方式吗 请你帮忙解决一下我的问题 我已经弄了快一个星期了...

@spysoos 微信 lj610491429

@sevenshal
Copy link

增量编译失效了。改动代码后重新编译,实际未有任何改动

@appdev
Copy link

appdev commented Apr 6, 2022

增量编译失效了。改动代码后重新编译,实际未有任何改动

确实有这个问题

@ikakaxi
Copy link

ikakaxi commented Apr 12, 2022

下载不下来了

@zerofancy
Copy link

zerofancy commented Aug 31, 2022

最新版本依赖 me.ele:lancet-base:1.0.6 ,但1.0.6未在 mavenCentral 发布

@08carmelo
Copy link

编译失败

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:transformClassesWithLancetForDebug'.

java.lang.UnsupportedOperationException: NestHost requires ASM7

@coderloveryan
Copy link

any solve?java.lang.UnsupportedOperationException: NestHost requires ASM7

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

8 participants