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:
However, this has not achieved anything. Are there any other suggestions for solutions?
Do the following steps.
File > Settings > Editor > General > Auto Import > Java
Click on the two options under java
Delete all the imports
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.