I have an Android project created in Eclipse. I want to modify the package name and application of the project. How do I do that in Eclipse?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
To change the app name when in Android, go to
res/values/strings.xml
and changeapp_name
to what you want.As usual, by pressing
F2
on the package name, you can rename or change the package name, and also by right-clicking and then selectRename
option, you can change or rename the package name.When you press F2, it will show you the dialog box as:
In this dialog, don't forget to check the "Update references" checkbox because by making "check" to this check-box, it will make changes to all the references of the package which are referred by other components of project.
OK here's what I had to do:
Problem: I had a base project that I wanted to use as a starting point for several other projects that would be in the same workspace as the base project. The base project was already under GiT control in my own local repo. It was time to duplicate the base project, "MyBaseApp", to become the starting point for "MyKillerApp."
Solution:
Thus I had a new project derived from a base project with no nomenclature left over from the base project and it was in its own local GiT repo.
Just get Far Manager and search through for the old name. Then manually (in Far Manager) replace everywhere. Sadly, this is the only method that works in 100% of the possible cases.
Just right click on the project name and select Android tools and click Rename Application Package name and rename it. It's only for Android projects.
This is a bug in the Eclipse Android tools.
To fix: Right click on the project, go to Android tools -> Rename application package.
And also check
AndroidManifest.xml
if it updated correctly. In my case it didn't, and that should solve this problem.