Reprint Address: http://www.07net01.com/program/2016/04/1452749.html
[Abstract: Being as on the open, encountered that topic, opened all the Java source files, the right side of the red, find no to the class, to no way, because it is not the face hit jump, opened the tangled for a long time, tried clean, rebuild and other ways have no impact, and]
In the development of as, encountered this problem, open all the Java source files, the right One road sign Red, can't find the class, to the method, because can not click Jump, the development of tangled for a long time, tried clean, rebuild and other methods do not work, and go online to find the recruit Daniel, Might not work for me. Another colleague only said to replace an as installation, feel unnecessary, too troublesome. After the study of the various methods on the Web, now will be personally experienced and solved a small skill attached, so as not to encounter such problems when flustered, find the wrong way to solve the problem. (PS: This method is a reference to the online problem solved, but can not find the original URL, so I wrote a bit, for your reference only)
Small Skill article:
1. Click File->invalidate Caches/restart ...
2. Restart Gradle, clear the cache
After 3.AS restart, Java no longer "everywhere" burst red
Related recommendations
- Warning when C # references a public variable of another namespace: because "* * *" is a field that references a marshaled class, accessing the above member may result in a run-time exception
- In ActionScript 3.0, run-time type checking is performed whether it is compiled in rigorous mode or in warning mode
- A warning and runtime error and workaround when referencing Enterprise Library 5.0
- Designer warnings generated by the QT runtime loading UI files
- Warning: Because xxx is a field that references a marshaling class, accessing the above member may result in a run-time exception
- RMI activation warning that eclipse appears at run time
- 27. Get run-time information (including runtime service, running task, running process information)
- Run-time build instances+ runtime call methods+ Runtime change fields content
- How can I get the program to run before XP starts the graphical interface? Just like when the chkdsk command is run automatically at startup or convert (when converting the C drive to NTFS format), does the command run at the same time?
Keywords: Android tips source Files Java skills
When Android Studio uses the source code to report the red warning everywhere, the operation is correct.