简体   繁体   English

Aspectj和Spring Roo'NoAspectBoundException'

[英]aspectj and spring roo 'NoAspectBoundException'

I have a api.jar with some entities compiled with Spring Roo. 我有一个api.jar,其中包含一些用Spring Roo编译的实体。 I use this library from my android application and see following for every roo generated entity: 我从我的android应用程序中使用此库,并为每个roo生成的实体查看以下内容:

E/dalvikvm(10938): Could not find class 'org.aspectj.lang.NoAspectBoundException', referenced from method _Roo_Json.aspectOf W/dalvikvm(10938): VFY: unable to resolve new-instance 2010 (Lorg/aspectj/lang/NoAspectBoundException;) in L_Roo_Json; E / dalvikvm(10938):找不到类org.aspectj.lang.NoAspectBoundException,从方法_Roo_Json.aspectOf引用W / dalvikvm(10938):VFY:无法解析新实例2010(Lorg / aspectj / lang / L_Roo_Json中的NoAspectBoundException;);

I searched at stackoverflow and found only one answer and it didn't help (suggested to add a aspectjrt ). 我在stackoverflow上搜索,仅找到一个答案,但没有帮助(建议添加AspectJrt )。

Does anybody has a clue what does it means? 有人知道这是什么意思吗?

As Spring-Roo uses AspctJ ITD to generate code you need add its runtime libraries as a dependency. 当Spring-Roo使用AspctJ ITD生成代码时,您需要添加其运行时库作为依赖项。 But I think that AspectJ is not suitable for Android. 但是我认为AspectJ不适合Android。 It works 有用

I found android-aspectj library which seems to be a possible way to archive this (I don't try it). 我发现了android-aspectj库,这似乎是将其存档的一种可能方式(我不尝试)。 Also, this library refers to a post which explains it . 此外,该库还引用了对其进行说明帖子

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM