简体   繁体   中英

Android Studio: Cannot resolve Symbol | Java

As you can see on the screenshot, almost every import is red and that in every class except those programmed by me. 在此处输入图像描述 I have already tried the following things to solve the problem:

  1. Deleted the.idea folder
  2. "Invalidate Caches" in Android Studio

However, this has not achieved anything. Are there any other suggestions for solutions?

Do the following steps.

  1. File > Settings > Editor > General > Auto Import > Java
    Click on the two options under java

  2. Delete all the imports

  3. Wait for the imports to kick in

Optional. 4. If it doesn't kick in do invalidate catches and restart after deleting.gradle.idea

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM