“Cannot find symbol R” error after renaming package name

后端 未结 8 2509
深忆病人
深忆病人 2021-02-07 05:06

After renaming my project package name (with Refactor), I got this error:

Error:(7, 44) error: cannot find symbol class R

All of my R

8条回答
  •  面向向阳花
    2021-02-07 05:40

    In my case, this error showed because I changed the package name without ticking the boxes (Search in comments and strings and Search for text occurrences)

    The solution for me: Rename package again and make sure you tick the two boxes as in the photo, then Do Refactor

提交回复
热议问题