Android Studio suddenly cannot resolve symbols

后端 未结 28 2885
南笙
南笙 2020-11-22 04:42

Android Studio 0.4.2 was working fine and today I opened it and almost everything was red and the auto-completion had stopped working. I look at the imports and AS seems to

28条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 05:00

    I had the same problem, none of the solutions listed here worked. The problem was my source files where not inside the right folder.

    The directory structure MUST be :

    [project]\[module]\src\main\java\[yourpackage]\[yourclass.java]

提交回复
热议问题