I have done Refactor -> Rename in Eclipse and the project has been renamed successfully in Eclipse. But when I copy/paste it in a folder, it still keeps the old name.
How can I completely rename it?
Copy Old project from the Project explorer , and paste it over there, It will ask for new name, give a new name , and done. The name there is changed to the new name, but the folder still keeps the old one. That's because you didnt rename the folder.
Anyway, you can rename the current open workspace by choosing Eclipse->Preferences->General->Workspace and changing the option "Workspace name (shown in window title)" from the default's workspace folder name to whatever you want to call it. Then, restart Eclipse.
Open your .project
file from the project folder and change following value in it.
You need to change to Project name in it.
Another way,
Copy Old project from the Project explorer , and paste it over there, It will ask for new name, give a new name , and done.
1) Right click on your package -> refactor -> rename. select Update references and rename subpackages.
2) Change packagename in AndroidMenifest.xml
package=”com.example.new_package_name”
3) In resources->values->string.xml change app_name to "new_name"
<string name="app_name">"new_name"</string>
Hope that will work!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With