环境搭建:
一:Eclipse.
- 最新idea下载链接网址:
- Eclipse-AJDT插件安装:
- 内容区域如下:Development builds for Eclipse 4.4
- AJDT 2.2.4 dev builds for Eclipse 4.4
Update Site URL: http://download.eclipse.org/tools/ajdt/44/dev/update
Zip file: See below - 从eclipse官网下载软件之后。我们开始搭建Android-AOP aspectJ环境。
- 需要下载eclipse,和eclipse的ajdt插件,eclipse官网有具体版本说明。
- 安装eclipse对jdk版本要求:
-
Installing Eclipse is relatively easy, but does involve a few steps and software from at least two different sources. Eclipse is a Java-based application and, as such, requires a Java runtime environment (JRE) in order to run.
Eclipse 4.6 (Neon)
Eclipse 4.6 (Neon)is scheduled for release on June 22, 2016.
Consider using the Installer. Please see 6 Steps to Install Eclipse.
A Java 8 JRE/JDK is required to run all Neon packages based on Eclipse 4.6. The reasoning behind requiring Java 8 are discussed here.
Eclipse 4.5 (Mars)
Eclipse 4.5 (Mars) was released on June 24, 2015.
Consider using the new Installer! Please see 6 Steps to Install Eclipse.
A Java 7 JRE/JDK is required for all Mars package downloads based on Eclipse 4.5. Information concerning tested configurations for Eclipse 4.5 is providedhere.
Eclipse 4.4 (Luna)
Eclipse 4.4 (Luna) was released on June 25, 2014.
A Java 7 JRE/JDK is required for most of the Luna package downloads based on Eclipse 4.4. Information concerning tested configurations for Eclipse 4.4 is provided here.
Eclipse 4.3 (Kepler)
Eclipse 4.3 (Kepler) was released in June 2013.
A Java 6 JRE/JDK is recommended for Eclipse 4.3. More information concerning tested configurations for Eclipse 4.3 is provided here.
-
android插件配置: 点击eclipse ->help->(install new software) --> 弹出面板add 按钮。 name: andorid xxx url:http://dl-ssl.google.com/android/eclipse/
环境配置:
1.下载一个aspectjweaver-1.8.3.java <@== 包括@Aspect,@Pointcut 等注解,下载完成需要添加到lib中
<buildCommand>
<name>org.eclipse.ajdt.core.ajbuilder</name> //将javaBuilder修改为这个。
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.ajdt.ui.ajnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
二:Android-Studio