Status Update
Comments
vi...@google.com <vi...@google.com> #2
Please note that this is unrelated to Lint. This is IntelliJ indexing failing to resolve the class.
Where does these binding classes come from?
ho...@gmail.com <ho...@gmail.com> #3
Could you please try "Build -> Run Generate Sources Gradle Tasks", and let us know if that fixes the problem?
vi...@google.com <vi...@google.com>
da...@google.com <da...@google.com> #4
From the layouts in the project.
Have seen similar in3.5.Cx , not so often in 3.6.Cx , but more in 4.0.Cx and
now in 4.1.C1. Normally it was like a "red flood" for 15-20 secs (suspected
AS to do some "catching up"), but in 4.0 and 4.1 it didn't get resolved
until a complete rebuild. More often after opening project or restart of AS.
RG
man. 2. mar. 2020, 19:26 skrev <buganizer-system@google.com>:
Have seen similar in
now in 4.1.C1. Normally it was like a "red flood" for 15-20 secs (suspected
AS to do some "catching up"), but in 4.0 and 4.1 it didn't get resolved
until a complete rebuild. More often after opening project or restart of AS.
RG
man. 2. mar. 2020, 19:26 skrev <buganizer-system@google.com>:
da...@google.com <da...@google.com> #5
Sorry, we bypassed...
I'll try your suggestion.
RG
man. 2. mar. 2020, 19:57 skrev <buganizer-system@google.com>:
I'll try your suggestion.
RG
man. 2. mar. 2020, 19:57 skrev <buganizer-system@google.com>:
ho...@gmail.com <ho...@gmail.com> #6
Hi, ran back to office to check out...(puuh!!...)
Yess! Your suggestion remedies the situation, and the false errors disappeared.
Anyway, before I ran the command, I took zip of my logs, maybe you see the reason for the issue there.
RG
Yess! Your suggestion remedies the situation, and the false errors disappeared.
Anyway, before I ran the command, I took zip of my logs, maybe you see the reason for the issue there.
RG
hu...@google.com <hu...@google.com> #8
Apologies for the delay in getting to this.
This seems like a duplicate of
If this is still an issue with recent versions of Studio & AGP please could you file a new issue referencing this one?
Description
AI-192.7142.36.36.6241897, JRE 1.8.0_212-release-1586-b04x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1200, 2560x1440
AS: 3.6.1; Kotlin plugin: 1.3.70-release-Studio3.6-1; Android Gradle Plugin: 3.6.1; Gradle: 6.2.2; 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
Android Gradle Plugin Version: 3.6.1
Gradle Version: 6.2.2
Modules > app > Compile Skd Version: 29 (API 29: Android 10.0 (Q))
Build Tools Version: 29.0.2
Android SDK Tools installed: 26.1.1
I edited my fragment layout xml file and created a second floating action button to help test functionality I am working on. I copied my existing com.google.android.material.floatingactionbutton.FloatingActionButton section and changed the appearance settings an android:onClick to call a different databinding function, but I forgot to change the android:id. When I ran the build I got a data binding error that the id "conflicts with another tag that has the same ID". I fixed the error, but found that all subsequent builds now immediately fail with this same error.
I tried a lot of things attempting to get builds working again. Doing clean, rebuild, invalidate caches / restart, removing the second floating action button definition, renaming the floating action button id listed in the error, removing all the floating action button definitions from the layout, removing all references to the id name from my source code, etc. Regardless of what I try, when I click on rebuild the build immediately fails with the same stale data binding error message. The error is still listing the original android:id name (which no longer exists anywhere in my code) and references line positions in the layout xml file which are now line numbers beyond the current end of that file because I removed sections from the file.
It appears that the old build failure has been cached somewhere by android studio in a place that does not get reset/cleared when the options to clean and rebuild are selected. The error message is now obviously a stale message since the code the error refers to is now a non-existent line number and the android:id name (and all references to that name) have been completely removed from all my source.
I am completely stuck, unable to build anything and cannot figure out how to move forward on my project when I can't build. I have attempted to clear anything that I could find sounding like it might be caching build error state. I have attempted to grep my project directories to find the android:id name listed in the stale error message to see if I could find where it is cached, but can't figure out where the cached build error is coming from, and I all builds now immediately fail showing me the stale data binding error message.
The following is the exact text of the stale error messages that now appear for all build attempts:
<com.google.android.material.floatingactionbutton.FloatingActionButton id='@+id/moveUpFloatingActionButton'> conflicts with another tag that has the same ID
Found data binding error(s):
[databinding] {"msg":"\u003ccom.google.android.material.floatingactionbutton.FloatingActionButton id\u003d\u0027@+id/moveUpFloatingActionButton\u0027\u003e conflicts with another tag that has the same ID","file":"C:\\Users\\Howard\\StudioProjects\\FoodForestDesigner\\app\\src\\main\\res\\layout\\food_forest_map_fragment.xml","pos":[{"line0":29,"col0":8,"line1":40,"col1":39}]}
[databinding] {"msg":"\u003ccom.google.android.material.floatingactionbutton.FloatingActionButton id\u003d\u0027@+id/moveUpFloatingActionButton\u0027\u003e conflicts with another tag that has the same ID","file":"C:\\Users\\Howard\\StudioProjects\\FoodForestDesigner\\app\\src\\main\\res\\layout\\food_forest_map_fragment.xml","pos":[{"line0":42,"col0":8,"line1":53,"col1":39}]}