Status Update
Comments
vi...@google.com <vi...@google.com> #2
Yigit, I haven't had time to try reproducing yet, but they have a github link which is nice. What's weird though is I don't think anything has changed recently at all, but maybe you're aware? Although, looking at the callstack, it may be an AGP issue? If it looks like that to you too, bounce it back to me.
OP: Was this a regression? And just to make sure, when you say "run ./gradlew help
", you're seeing this from the command line? Or from within Studio?
ja...@gmail.com <ja...@gmail.com> #3
I'm seeing this from command line.
Yes this seems to be a regression starting from 7.0.0-alpha10.
Note that the project I linked doesn't use databinding at all, enabling the build config flag is all that's needed to reproduce this.
vi...@google.com <vi...@google.com> #4
Thanks for the quick reply. I have a short open window right now so I'll try to repro and see if I can figure out which component this is best for.
dp...@google.com <dp...@google.com> #5
I can repro what OP is seeing. It may be tempting to move this to the data binding component but this seems more like an AGP change. I don't believe the data binding compiler has been changed recently, around the time AGP 7.0.0-alpha10 went out.
vi...@google.com <vi...@google.com>
di...@google.com <di...@google.com> #6
Also, slightly more direct steps (although it amounts to the same thing as what's in
- Sync the github project somewhere (
git clone https://github.com/ReactiveCircus/streamlined.git
) - Double check everything's working as expected (
./gradlew help
should work) - Edit
app/build.gradle.kts
: Search forbuildFeatures
and adddataBinding = true
as the first entry, abovebuildConfig
- Now, things are expected to break (
./gradlew help
should throw an exception) - Edit
buildSrc/src/main/kotlin/io/github/reactivecircus/streamlined/Dependencies.kt
: change the AGP version to7.0.0-alpha09
- Now, things are expected to work again(
./gradle help
should work)
jl...@google.com <jl...@google.com> #7
yea this seems unrelated to data binding as we didn't change data binding itself
There were some resource related changes so cc'ing Iza in case they might be related but i don't think so. This seems like a lifecycle issue.
Description
all required information.
Studio Build: #AI-183.6156.11.34.5522156
Version of Gradle Plugin: 3.4.2
Version of Gradle: 5.1.1
Version of Kotlin: 1.3.41
OS: Android, Kotlin
Steps to Reproduce:
1. Any .xml design view with Button in it.
2. Every time you click on the Button (from Design view as an developer) AS is loading for about a minute, which is extremely annoying, every single time I click on button the entire AS just stops and loading something inside of the Button (probably searching for onClick method? Even if it's empty?) and you have to wait even if you want to just change its size etc.