Status Update
Comments
uc...@google.com <uc...@google.com>
da...@google.com <da...@google.com> #2
Weird, I've forgotten what's changed between 3.6.3 and 4.0, I didn't think it was that much. I'll take a look.
gr...@ynab.com <gr...@ynab.com> #3
viewbinding.enabled = true
which I didn't realise was deprecated. I changed it to the new
buildFeatures {
viewBinding = true
}
but it makes no difference. The error is still there.
da...@google.com <da...@google.com> #4
Yeah the IDE feature should turn on for both.
I think I was able to reproduce as well? But it's inconsistent. Thanks for the easy steps to repro at least!
It looks like bad caching behavior, but I'm not 100% sure what's happening yet. It may be something to do with the fact there are multiple layers of layouts, and perhaps an outer layer gets cached and doesn't realize it should change when the inner layer updates?
This bug is my top priority now so hopefully I'll have more information soon.
do...@revelo.com <do...@revelo.com> #5
da...@google.com <da...@google.com> #6
da...@google.com <da...@google.com> #7
BTW, I've already submitted a fix that should land in 4.1. The issue is fundamentally due to a stale cache.
That same fix doesn't seem to be working in 4.0 (after I reached out to two people experiencing this bug), so I'm tentatively thinking about rolling back cache changes there, in case we have a 4.0.1 patch.
da...@google.com <da...@google.com> #8
Can anyone on this bug confirm if they're no longer seeing this in 4.1? I'm potentially going to mark this fixed as 4.1 resolves a bunch of cache issues (via code completely outside of my own codebase)
gr...@ynab.com <gr...@ynab.com> #9
But I also no longer see it in 4.0, which is where the problem originally cropped up for me. The joy of caching bugs. eh?
da...@google.com <da...@google.com> #10
Caching: The solution to and cause of so many problems. ¯_(ツ)_/¯
Thanks for the reply!
I'll close this for now, but of course, please ping it again (or file a new bug if that's easier) if you see issues in 4.1
Description
AI-193.6911.18.40.6514223, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.4, screens 1920x1200, 3200x1800; Retina
AS: 4.0; Kotlin plugin: 1.3.72-release-Studio4.0-1; Android Gradle Plugin: 4.0.0; Gradle: 6.4; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
IMPORTANT: Please read
Just updated from AS 3.6.3 to 4.0.
It is showing an error when I access the root view of a layout which is included in another layout. The code still builds and runs correctly. The problem is just that AS 4.0 highlights it as an error. See attached screenshot.
Here's the included layout:
<?xml version="1.0" encoding="utf-8"?>
<EditText xmlns:android="
android:id="@+id/memo_value"
style="@style/txnDetailValue.editable"
android:capitalize="sentences"
android:hint="@string/hint_memo" />
And here's the parent container which includes it:
<RelativeLayout
android:id="@+id/memo_container"
style="@style/txnDetailItem">
<include
android:id="@+id/memo_value"
layout="@layout/memo_field" />
</RelativeLayout>
The exact same code works perfectly in AS 3.6.3.