问题
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:
- Use Eclipse and ADT, but you probably don't want to do that.
- 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