android aspectJ报错“transformClassesWithExtractJarsForDebug“

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_38079174/article/details/72353741

    最近由于课程要求,要在android上跑AOP。在配置AOP环境时却遇到此问题。纠结了一段时间,后来在GitHub上才找到答案。
先说下我的项目运行环境

AS 2.2.3
compileSdkVersion 25
buildToolsVersion "25.0.2"
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:1.0.10'

    造成上述问题是由于as版本,需将Android studio的instant run关闭。具体如下:
Settings → Build, Execution, Deployment → Instant Run and uncheck Enable Instant Run.

这里写图片描述

    最后清理项目重新生成就好了。

猜你喜欢

转载自blog.csdn.net/m0_38079174/article/details/72353741