Android Studio is showing red lines on correct cod...
# android-studio
m
Android Studio is showing red lines on correct codes, and when I try to run the code it runs perfectly. Why? How can I fix it? All Possible try it but not work
k
This happens to me all of the time. My first try is usually to just do another gradle sync. If that doesn’t work, then I usually, restart Android Studio
p
You can try a clean and delete the
/idea
folder then restart, or invalidate caches and restart
a
Also, don't delete the
/idea
folder if you don't know what you're doing. You may have some important files there, like shelved code changes
👍 1
m
this are all solution try it not work
😓 2
b
Last resort that have worked for me in the past when nothing else did: clone the repo to another folder and switch to it. And if that doesn't work maybe you've found a bug.
m
my all kotlin multiplatform project try it not work and currently i use intelliJ community but also one problem in intelliJ community problem is logcat not show in intelliJ community
c
If this repros consistently with KMP projects, please file a bug and we can investigate as we are still improving our KMP support in Android Studio.
m
can you tell me where add this issues
m
@Chris Sinco [G] sorry i not see message. i currently i added. Thank you https://issuetracker.google.com/issues/355397966
👍 1
can we help this issue it not resolve it
g
delete ./gradle from .android on root disk, this it's a problem os gradle dependencies and cache sync. also you can delete cache from .android., (This will take time when you will try to sync again)
m
all possible solution try it not work i dont know what issue
g
awkward monkey
108 Views