I experienced a power surge and after I restarted my Android Studio, all my class names have turned red, but my code compiles and runs perfectly. But I can't have access to certain class functionalities. I have rebuilt and also cleaned the project but to no avail. I've also reinstalled Android Studio.
Asked
Active
Viewed 4,684 times
5
-
I think it a linker problem, You just should restart your application. – Fady Saad Apr 21 '17 at 22:39
-
I've done that a couple of times today, but no effect has been seen – fritz-playmaker Apr 21 '17 at 22:42
-
9Does File | Invalidate Caches help? – CrazyCoder Apr 21 '17 at 23:18
-
1This happened to me because of these reasons: * There was something wrong with the library that I added through gradle * My layout file(s) have errors that was not resolved * Compiling and updating gradle failed – uncannyj Apr 22 '17 at 02:38
-
2Clicking on File | Invalidate worked. Thanks and God bless you @CrazyCoder – fritz-playmaker Apr 22 '17 at 08:27
-
Invalidate didnt worked , updating com.android.support:appcompat-v7:25.1.+ from com.android.support:appcompat-v7:25.1.0 changed AppCompatActivity red symbol rest not working – ShankPossible Jul 09 '18 at 17:15