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.
Asked
Active
Viewed 2,778 times
1 Answers
3
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.

Andrew Eisenberg
- 28,387
- 9
- 92
- 148
-
Slight correction: IntelliJ IDEA does have AspectJ native syntax support, just not as sophisticated and complete as Eclipse. – kriegaex Jan 19 '15 at 02:44
-
I was rather talking about [built-in AspectJ support](https://www.jetbrains.com/idea/help/aspectj.html) than the external plug-in for post-compile time weaving. – kriegaex Jan 19 '15 at 11:11
-
Still not correct. [IntelliJ Ultimate](https://www.jetbrains.com/idea/features/editions_comparison_matrix.html) has ["native" support for AspectJ](https://www.jetbrains.com/help/idea/2016.1/aspectj.html) via bundled Jetbrains plugin. The [AspectJ weaver plugin](https://plugins.jetbrains.com/plugin/1127?pr=idea) - which I am the author of - was created before Jetbrains added AspectJ support. It is no longer maintained, but may still work for non-Ultimate editions of IntelliJ based products, such as IntelliJ Community and Android Studio. – Mattias Jiderhamn Jul 14 '16 at 07:27