Android Studio suddenly cannot resolve symbols

后端 未结 28 2607
南笙
南笙 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条回答
  •  旧时难觅i
    2020-11-22 05:13

    I had a much stranger solution. In case anyone runs into this, it's worth double checking your gradle file. It turns out that as I was cloning this git and gradle was runnning, it deleted one line from my build.gradle (app) file.

    dependencies {
         provided files(providedFiles)
    

    Obviously the problem here was to just add it back and re-sync with gradle.

提交回复
热议问题