Android Studio unresolved reference. Project compiles

前端 未结 4 999
没有蜡笔的小新
没有蜡笔的小新 2021-01-07 23:31

After upgrading Android Studio, a project with no issues started showing issues in the editor. I have lots of Unresolved Reference errors. Anything under the su

相关标签:
4条回答
  • 2021-01-07 23:48

    I had the same problem. It is related with new AndroidX libraries and migration on it.

    Try File -> Open -> and click build.gradle to reopen project.

    0 讨论(0)
  • 2021-01-07 23:49

    Please Delete the .idea and .gradle project from the app directory and Invalidate and Cache Restart the Android Studio. This will resolve this issue.

    0 讨论(0)
  • 2021-01-07 23:58

    Simple Solution Is That:

    1: GoTo File And Close The Project.

    2: Then GoTo File And Click On "Open Recent" And Open Your Project.

    That Trick Works For Me.

    0 讨论(0)
  • 2021-01-08 00:07

    I agree with Stanislav Mukhametshin that may be it is related with new AndroidX libraries and migration on it. I had cleaned and rebuilt project but that didn't work. So, I tried this way and error goes away.

    1) Go to File and close project.

    2) Reopen the same project.

    0 讨论(0)
提交回复
热议问题