Skip to content

Errors in gradle

JingYeoh edited this page Feb 24, 2018 · 3 revisions

First, please check Instant Run is already turned off.

1. Error:Execution failed for task ':app:transformClassesWithAspectTransformForDebug'.org/aspectj/bridge/MessageHandler

add in root gradle.

classpath 'org.aspectj:aspectjtools:1.8.13'

2. UnKnown error ** is not a puppet object

Please confirm whether the class is added @Puppet annotation and Instant Run is already turned off.
Generally, this error is caused by using java8 in your project.

First,check your root gradle.

classpath 'org.aspectj:aspectjtools:1.8.13'
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:1.1.1'

If you need use jack

//root build.gradle
classpath 'org.aspectj:aspectjtools:1.8.13'
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:1.1.1'
classpath 'me.tatarka:gradle-retrolambda:3.5.0'
//application build.gradle
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'android-aspectjx'
android{
   jackOptions {
       enabled false
   }
}

3. Error:Execution failed for task ':app:transformClassesWithRetrolambdaForDebug'.

Missing javaCompileTask for variant

please update your retrolambda version.

classpath 'me.tatarka:gradle-retrolambda:3.7.0'
Clone this wiki locally