I am using android studio 3.3, my project is using kotlin 1.3.20 with build gradle 3.3.0
however when i try to open xml file, it open different file with the right file name and the right file path:
And when i try to see this xml file in my Git, my file is normal
when i try to run this project, it run with no problem at all. i already try to invalidate caches/restart but the problem still exist.
this error affecting random xml files. some of my xml layout files open my kotlin file. some of them open auto generated file
please help.... is this something to do with error indexing? how can i fix this?
UPDATE :
found someone who might have the same problem with this, in google issue tracker : https://issuetracker.google.com/issues/122988154
UPDATE 2 :
this issue is not just happen in xml file but also in kotlin file.
i try to open my activity file, but it open one of data binding generated classes
So Apparently this issue is bug in Android Studio. after do some research, this bug might be happen not just to xml layout but other xml file too such as resource like dimens, strings, style etc..
finally there is some workaround for this issue that work without reinstall Android Studio. Thank you @ChetanJoshi for the suggestion in the comment section.
Steps:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With