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

去掉realm的配置后,运行不正常 #39

Open
FlyingWater1 opened this issue Feb 21, 2019 · 0 comments
Open

去掉realm的配置后,运行不正常 #39

FlyingWater1 opened this issue Feb 21, 2019 · 0 comments

Comments

@FlyingWater1
Copy link

FlyingWater1 commented Feb 21, 2019

在我写的工程里面,如果不配置realm,就会报错
Caused by: javassist.NotFoundException: compileDebugJavaWithJavac.classes.com.base.event.Event
at com.app.plugin.MyInject$_injectDir_closure1.doCall(MyInject.groovy:32)

     报错原因是MyInject的32行:CtClass c = pool.getCtClass(className)

    MyInject的24行:String filePath = file.absolutePath
如果配置上realm, MyInject的24行获取到的路径是工程下的app/build/intermediates/transforms...下面的内容,
    如果不进行realm配置,获取到的路径就是工程下的app/build/intermediates/javac/debug/compileDebugJavaWithJavac......下面的内容,然后又以com进行截取字符串,就会出错,

请教下怎么解决

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