apptreematt
01/19/2016, 9:40 PMkirillrakhman
01/19/2016, 9:41 PMapptreematt
01/19/2016, 9:42 PMkirillrakhman
01/19/2016, 9:43 PMkirillrakhman
01/19/2016, 9:44 PM:project:compileDevMultidexLollipopDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Generating a MembersInjector or Factory for package.name.MyActivity. Prefer to run the dagger processor over that class instead.
warning: The following options were not recognized by any processor: '[kapt.kotlin.generated]'
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Z:\Repos\project\path\build\generated\source\kapt\devMultidexLollipopDebug\package\name\DaggerMyApplication_ApplicationComponent.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
kirillrakhman
01/19/2016, 9:57 PMderek
01/20/2016, 1:19 AMderek
01/20/2016, 1:19 AM1.0.0-beta-4584
)derek
01/20/2016, 3:55 AMincremental = true
to dexOptions
in build.gradle seems to fix the build+run issuekirillrakhman
01/20/2016, 9:07 AM-Pandroid.incrementalJavaCompile=false
but how can I achieve the same effect using build.gradle?madisp
01/20/2016, 9:15 AMandroid.incrementalJavaCompile=false
to gradle.properties
madisp
01/20/2016, 9:15 AMkirillrakhman
01/20/2016, 9:15 AMmadisp
01/20/2016, 9:16 AM~/.gradle/gradle.properties
)kirillrakhman
01/20/2016, 9:18 AMkirillrakhman
01/20/2016, 9:19 AMmadisp
01/20/2016, 9:25 AMmadisp
01/20/2016, 9:25 AMkirillrakhman
01/20/2016, 9:26 AMbashor
01/20/2016, 9:42 AMcompileJava {
options.incremental = false
}
madisp
01/20/2016, 9:44 AMkirillrakhman
01/20/2016, 9:46 AMtasks.withType(JavaCompile) {
options.incremental = true
}
Didn't workmadisp
01/20/2016, 9:52 AMandroid.applicationVariants.all { variant -> variant.javaCompile.options.incremental = false }
might workkirillrakhman
01/20/2016, 9:54 AMprintln(it)
inside the closure and it did print out all the java compile taskskirillrakhman
01/20/2016, 9:54 AMoptions.incremental = false
doesn't do anythingkirillrakhman
01/20/2016, 9:54 AMmadisp
01/20/2016, 9:55 AMkirillrakhman
01/20/2016, 9:55 AMmadisp
01/20/2016, 9:55 AMapplicationVariants.all
callback happens after it has been configured from Android plugin's side, so that might workkirillrakhman
01/20/2016, 9:55 AM