<span id="Label3"><p style="">Android Studio does not recognize other classes in the same package and displays them in red, but compile is not a problem. Cannot resolve symbol XXX is displayed after the mouse is put on, restarting Android Studio and Re-sync Gradle,clean build is Useless.</p><p style="">Mostly because of an error before Android Studio, Some setting are out of the Question. Here's How to fix it:<span id="more-1528" style="font-family:inherit; margin:0px; padding:0px; border:0px; font-style:inherit; font-variant:inherit; font-weight:inherit; font-size:undefined; line-height:inherit; vertical-align:baseline"></span></p><p style="">Click "File", "Invalidate caches/restart" in the menu, then click "Invalidate and Restart" in the dialog box to clear the cache and Reboot. The syntax will be highlighted CORRECTLY.</p><p>Android Studio--"cannot Resolve symbol" Solution</p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service