“Cannot find symbol R” error after renaming package name

后端 未结 8 2383
深忆病人
深忆病人 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:32

    Try to change application Id in build.gradle. Or remove any imports of com.***.R in your activity and let android studio to automatically import for you.

提交回复
热议问题