简体   繁体   中英

Rename package name in android

I want to rename package name in my project. I have 9 packages so far and when I have change package name ,the changes are done in java and xml file.

But in Manifest.xml file, the activity definition section , package activity doesn't change after rename package.

Please help me.

There is an option for this in Android Tools, here are the steps for doing this

  1. Right Click on the project
  2. Click on Android Tools
  3. Click on Rename Application Project
  4. Enter the new package name

First change the package name in the manifest file
Re-factor > Rename the name of the package in src folder and put a tick for rename subpackages, thats it.

Could you use Search and replace?

In Eclipse:

Open the AndroidManifest.xml

Edit-->Find/Replace

Find: old.app.name
Replace With: new.app.name

Click OK.

Just check everything is OK before you save the file.

/Steffen

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM