Thứ Ba, 19 tháng 11, 2013

Cannot change android package name

If you're using Eclipse, you could try these instructions from Android's developer site. They're specifically for the GestureBuilder sample but should apply to any application as far as I can tell:
[H]ere's how you could do this in Eclipse:
  1. Right-click on the package name (src/com.android.gesture.builder).
  2. Select Refactor > Rename and change the name, for example tocom.android.gestureNEW.builder.
  3. Open the manifest file. Inside the <manifest> tag, change the package name tocom.android.gestureNEW.builder.
  4. Open each of the two Activity files and do Ctrl-Shift-O to add missing import packages, then save each file. Run the GestureBuilder application on the emulator.
Also, be sure you remembered to rename the package itself along with the references to it in the files. In Eclipse you can see the name of the package in the file explorer window/tree view on the left hand side. In my experience, Eclipse can sometimes be a little finnicky and unreliable with this (leaving behind stray references to the old package name, for example).

http://stackoverflow.com/questions/4025369/how-to-change-package-name-of-an-android-application

http://developer.android.com/guide/faq/troubleshooting.html#gesturebuilderinstall

Không có nhận xét nào:

Đăng nhận xét