aspectj for Android studio - where is AJDT plugin

我是研究僧i 提交于 2019-12-09 19:05:05

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/28004621/aspectj-for-android-studio-where-is-ajdt-plugin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!