重构包名打破整个应用程序 [英] Refactoring package name breaks entire app

查看:259
本文介绍了重构包名打破整个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图重构使用Eclipse我的包

I am trying to refactor my package using Eclipse

org.sheehan.activity

org.sheehan.stocks.activity

出于某种原因,我的项目只是吹了,当我做到这一点和R没有得到再生。我该如何重构是否正确?

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

更新: 我更新了我的Andr​​oid清单以反映更改。 ṛ依旧没有得到再生。即使在一个干净的。编译器抱怨org.sheehan.activity.R

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

推荐答案

我解决了:

Android Tools > Rename Package Application

这篇关于重构包名打破整个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆