# \[4.7\] Android Packaging fails due to '-' in package name

**URL:** <https://forums.unrealengine.com/t/4-7-android-packaging-fails-due-to-in-package-name/308448>\
**Category:** Mobile\
**Tags:** UE4-7, unreal-engine, Android, Packaging, bug-report, editor, question\
**Created:** [February 27, 2015, 10:14pm UTC](https://forums.unrealengine.com/t/4-7-android-packaging-fails-due-to-in-package-name/308448 "2015-02-27T22:14:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axtel\_Sturnclaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axtel\_Sturnclaw](https://forums.unrealengine.com/u/Axtel_Sturnclaw)\
**Post date:** [February 27, 2015, 10:14pm UTC](https://forums.unrealengine.com/t/4-7-android-packaging-fails-due-to-in-package-name/308448/1 "2015-02-27T22:14:47Z")

</div>

There are a few bugs with packaging for android with 4.7.

1. Having a hyphen ‘-’ in your package name causes javac not to find the semicolon at the end of the package line in /[project root]/Intermediate/Android/APK/gen/com/[your-name-here]/[yourProjectHere]/BuildConfig.java, and R.java, in the same folder. This causes packaging to fail. Might be user error on my part, but still a bug.
2. When changing package names in the Android pane of the Project Settings window, UE4 creates a new set of folders with the new package name, but _does not_ remove the old ones. This compounds the above problem, because even if you fixed the name, it is still trying to compile with the old files as well.

I am aware that the issue with hyphens will probably not go away, due to how java works. However, I would suggest implementing some form of error filtering in (at the very least) the package name input field. Even a lowly tooltip would be nice.

Also, please do try to make the editor clean up after itself when switching package names.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [March 5, 2015, 8:26pm UTC](https://forums.unrealengine.com/t/4-7-android-packaging-fails-due-to-in-package-name/308448/2 "2015-03-05T20:26:37Z")

</div>

Howdy Axtel,

Thank you for reporting this issue that you have been running into. I have written Jira report UE-11360 and placed this report into our bug database so that the issue may be addressed. I will be sure to keep you updated as I see any progress being made or if this is by design.

If it is by design, then I will place a feature request in to better explain that no ‘-’ can be used in the title.

Thanks and have a great day!
