@HookMethod(beforeMethod = "foo")
override fun onCreate(savedInstanceState: Bundle?)
发生如下错误
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/safframework/tony/common/utils/Preconditions;
at com.safframework.aop.HookMethodAspect.hookMethod(HookMethodAspect.java:48)
at com.project.android.apps.gccm.FrameworkActivity.onCreate(FrameworkActivity.kt:131)
foo已经定义:
private fun foo(){
Log.e("Test123", "empty input param")
}
在项目中引进这个插件后,在activity的onCreate中进行hook,
发生如下错误 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/safframework/tony/common/utils/Preconditions; at com.safframework.aop.HookMethodAspect.hookMethod(HookMethodAspect.java:48) at com.project.android.apps.gccm.FrameworkActivity.onCreate(FrameworkActivity.kt:131)
foo已经定义:
这个是什么原因造成的呢?不支持kotlin吗?