Can't Repro
Status Update
Comments
go...@jakewharton.com <go...@jakewharton.com> #2
Information redacted by Android Beta Feedback.
xa...@google.com <xa...@google.com>
je...@google.com <je...@google.com> #3
Thank you for reporting this issue. We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
al...@google.com <al...@google.com>
al...@google.com <al...@google.com> #4
This is such an urgent fix, I cannot charge my phone above 80%. Please get this done, Google.
go...@jakewharton.com <go...@jakewharton.com> #5
Same here, batteri change til 80% and not more than this. I can't figure It out how can i disabile this.
go...@jakewharton.com <go...@jakewharton.com> #6
Workaround found, if you turn the phone off to charge the 80% limit is *not* enforced.
Description
With
java
plugin applied to Gradle project one can use the followingjava.sourceSets.getByName("main").java.srcDirs(someTask.flatMap(SomeTask::someOutputDir))
in order to ensure generation of sources prior to compilation of java source set.However with any
com.android...
plugin applied to Gradle project trying to do the same with AndroidSourceSet version doesn't work the same way —android.sourceSets.getByName("main").java.srcDirs(someTask.flatMap(SomeTask::someOutputDir))
results in these sources being acknowledged during java compilation of the source set, but task that produces them is not queried the wayjava
plugin does. And one has to wire this generation task (SomeTask
) to somepreBuild
task in order for these sources generation to kick in prior to java compilation which is quite cumbersome.Is this intended or bug?
I've created a MRE .
I'm aware of
androidComponents.onVariant { variant -> variant.sources.java.addGeneratedSourceDirectory() }
which works, but this is not yet stabilized and works only for the new versions of AGP.