Status Update
Comments
rk...@google.com <rk...@google.com> #2
thanks for create this issue instance. It is more related to generated Binding Class in Data Binding is deemed to be Unresolved by KT Editor, when multiple base modules in the project has the same Data Binding classes.
ak...@gmail.com <ak...@gmail.com>
rk...@google.com <rk...@google.com> #3
The bar for cherry picking is too high, I'm afraid. If I understand things correctly...
- The workaround is simple (just ignore it for now)
- This isn't a regression, it's been present in older versions of Studio
- (As far as our team can tell) this doesn't affect a large % of all Studio users
If these are true, then it's certain the request for a cherry pick will be rejected. After all, cherry picks are risky (landing so late) and require a bunch of resources (an additional test path with QA brought up to speed), so I've seen worse bugs rejected for cherry picks than something like this.
Let me know if I'm missing anything. I'm closing this bug down for process reasons, but please feel free to keep the conversation going and I'll respond.
ak...@gmail.com <ak...@gmail.com> #4
I think it is fine to leave the status: Won't fix for this issue instance, since the fix is in 4.2 Canary 9 already.
- The workaround is simple (just ignore it for now)
- This isn't a regression, it's been present in older versions of Studio
not an objection for me as the issue reporter.
(As far as our team can tell) this doesn't affect a large % of all Studio users
I think it is really an edge case. As far as i can think of the scenarios to cause this happen would be:
- Doing the Android Kotlin Codelabs, since it happens a lot to duplicate the base module as
final
andstart
for scaffolding learning - Working with the App solution across multiple android based devices, such as Wear OS, Android phone while the project has multiple base modules all having the same named layout files for features such as SettingsFragment.
When i was able to change the runtime of AS 4.0.1 to OpenJDK 11 with Choose Runtime Plugin. The issue seems to be resolved, but as far as i click on the reference to open the declarations the Android Studio 4.0.1 has crashed and restarted by itself. Such a behaviour doesn't seem to happen in AS 4.1 RC2.
rk...@google.com <rk...@google.com> #5
Build was succeeds but the IDE shows unresolved references same as the OP. The error is intermittently appeared even I had no change to the related layout file and class that use the generated binding class.
ak...@gmail.com <ak...@gmail.com> #6
Thanks for your update, but it's hard to confirm whether it is the same bug since 3 years have passed.
In
The reporter said that this issue has been fixed in Android Studio 4.2 Canary 9
This makes me believe that you are hitting a different issue (different root cause with the same symptom).
Please file a new bug with us with as many details as possible and we can start/restart the investigation process.
Description
```
Build: AI-243.22562.218.2431.13114758, 202502250915
AS: Meerkat | 2024.3.1
AI-243.22562.218.2431.13114758, JRE 21.0.5+-12932927-b750.29x64 JetBrains s.r.o., OS Mac OS X(x86_64) v11.7.10, screens 2880x1800 (200%); Retina
Android Gradle Plugin: 8.9.0
Gradle: 8.11.1
Gradle JDK: JetBrains Runtime 21.0.5
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: 3.31.6-g38307f9, from PATH: 3.30.3
```