Android Studio suddenly cannot resolve symbols

后端 未结 28 2570
南笙
南笙 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:17

    In my multi-module project, the problem was that version of "com.android.support:appcompat-v7" in module A was "22.0.0", but in B - "22.2.0".

    Solution: make sure
    1. version of common libraries is same among modules.
    2. each of modules compiles without any errors (try to build each of them from CLI).

提交回复
热议问题