Fixed
Status Update
Comments
rm...@google.com <rm...@google.com> #2
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
da...@google.com <da...@google.com> #3
Dev notes:
* Add a <variable> to a data binding XML file (e.g. activity_main.xml)
* Build project, generating code, e.g. ActivityMainBinding
* Code completion in Kotlin finds the generated code first (fine so far)
* Add a second <variable> to the data binding XML file
* Do NOT build the project
* Code completion in Kotlin refers to the stale generated code file
* Add a <variable> to a data binding XML file (e.g. activity_main.xml)
* Build project, generating code, e.g. ActivityMainBinding
* Code completion in Kotlin finds the generated code first (fine so far)
* Add a second <variable> to the data binding XML file
* Do NOT build the project
* Code completion in Kotlin refers to the stale generated code file
da...@google.com <da...@google.com> #4
Hey Roar, the fix for this should land in Canary 11.
ro...@gmail.com <ro...@gmail.com> #5
Thanx! Love u!
RG
RG
da...@google.com <da...@google.com> #6
Anything for you, Roar! Have a nice day :)
[Deleted User] <[Deleted User]> #7
eagerly waiting for canary 11.
Description
AI-183.5153.38.35.5240547, JRE 1.8.0_152-release-1248-b01x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1600x900, 1920x1080
Android Gradle Plugin: 3.5.0-alpha02
Gradle: 5.1.1
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
---
(In AS3.5C2)
"Error": If you change a <data> element in a <layout> section of a layout xml-file, the binding will not be updated until you do a "Rebuild project".
Suggestion: To have control of this, there should be a "binding build" window or "binding not rebuilt yet!" message, so you could be sure if the autocreated binding part of your code is correct or not. It will take too long time to manually rebuild for every change you do in the layout file.
See picture
RG