didi / DroidAssist

A lightweight Android Studio gradle plugin based on Javassist for editing bytecode in Android.
Apache License 2.0
890 stars 150 forks source link

Caused by: javassist.NotFoundException: android.support.v4.app.DialogFragment #28

Open arthurlang opened 4 years ago

arthurlang commented 4 years ago

网上说ClassPath添加ClassPool中, 请问这块代码如何使用 如下代码:

Model model = new Model();ClassPool pool = ClassPool.getDefault();ClassClassPath ccpath = new ClassClassPath(model.getClass());pool.insertClassPath(ccpath);CtClass ctClass = pool.get("com.project.Model");