Refactoring package name breaks entire app

2019-04-04 04:07发布

I am trying to refactor my package using Eclipse

org.sheehan.activity

to

org.sheehan.stocks.activity

For some reason my project just blows up when I do this and R doesn't get regenerated. How can I refactor properly?

UPDATE: I updated my Android Manifest to reflect the change. R still doesn't get regenerated. Even after a clean. The compiler is complaining about org.sheehan.activity.R

7条回答
该账号已被封号
2楼-- · 2019-04-04 04:36

Right click in your Project, go to

Android Tools > Rename Package Application

Sometimes if Project > Clean doesn´t work, so Delete /gen and /bin folders of your project.

查看更多
登录 后发表回答