Android Studio的AspectJ-AJDT插件在哪里 [英] aspectj for Android studio - where is AJDT plugin

查看:161
本文介绍了Android Studio的AspectJ-AJDT插件在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为Android Studio安装AJDT.我知道有一个日食,但我在android studio中找不到任何东西.我想做的是在启动每个方法调用之前对它们进行安全检查.我已经在此网站 AJDT 中进行过尝试,但这仅用于日蚀.

解决方案

Android Studio是可识别Android的IntelliJ版本. IntelliJ不支持AspectJ的工具.我可以想到两种解决方案:

  1. 使用Eclipse和ADT,但是您可能不想这样做.
  2. 使用Annotation Style AspectJ,让Android Studio将方面代码视为Java代码.您将不会获得任何交叉引用,导航或内容辅助,但是IDE不会抱怨编译错误.


编辑:有一个用于AspectJ的IntelliJ插件./p>

How do i install AJDT for android studio. I know there is one for eclipse but i cant find anything in android studio. What i would like to do is run security checks on every one of my method calls before they launch. I've tried from this site AJDT but this is for eclipse.

解决方案

Android Studio is an Android-aware version of IntelliJ. IntelliJ has no tooling support for AspectJ. There are two solutions that I can think of:

  1. Use Eclipse and ADT, but you probably don't want to do that.
  2. Use Annotation Style AspectJ and let Android Studio treat the aspect code as Java code. You won't get any cross-references, navigation, or content assist, but the IDE will not complain of compile errors.


EDIT: There is an IntelliJ plugin for AspectJ.

这篇关于Android Studio的AspectJ-AJDT插件在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆