# Android build keeps using CordovaApp as app name

**URL:** <https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702>\
**Category:** ionic-v1\
**Created:** [October 24, 2014, 7:24pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702 "2014-10-24T19:24:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![davor](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@davor](https://forum.ionicframework.com/u/davor)\
**Post date:** [October 24, 2014, 7:24pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/1 "2014-10-24T19:24:45Z")

</div>

Not sure if this is a bug or something, but this was working few months back, now my every android build gives a default android app like this “CordovaApp-debug.apk”. If I open platforms/android/build.xml I see that xml file starts with `<project name="CordovaApp" default="help">`.

I guess that for some reason build tool doesn’t take the config.xml `name` value.

I can probably fix this using the custom\_rules.xml and just rename the app after build, but if I check the apps I built few months back they all have their name right.

thanks  
dp

---

<div class="post-metadata">

**Author:** ![nicraboy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nicraboy/32/6917_2.png) [@nicraboy](https://forum.ionicframework.com/u/nicraboy)\
**Post date:** [October 25, 2014, 5:21am UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/2 "2014-10-25T05:21:10Z")

</div>

After updating to Cordova 4.0 I am experiencing the same thing.

---

<div class="post-metadata">

**Author:** ![davor](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@davor](https://forum.ionicframework.com/u/davor)\
**Post date:** [October 25, 2014, 1:46pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/3 "2014-10-25T13:46:12Z")

</div>

I’m still on cordova 3.7.0 I searched everywhere and not sure from where is taking this default name

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [October 27, 2014, 1:25pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/4 "2014-10-27T13:25:57Z")

</div>

Im getting this to. Its annoying! Tried to remove and then add platforms. Im also on cordova 3.7.0. Fixed it like you said @davor though…

Found any solution?

---

<div class="post-metadata">

**Author:** ![arlevi](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@arlevi](https://forum.ionicframework.com/u/arlevi)\
**Post date:** [November 1, 2014, 7:58pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/5 "2014-11-01T19:58:33Z")

</div>

Same here, I upgraded to Cordova 4.0.0 and I started to see CordovaApp.apk after “build”…

Should I edit it manually meanwhile ?

---

<div class="post-metadata">

**Author:** ![saurabhgupta050](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/saurabhgupta050/32/6996_2.png) [@saurabhgupta050](https://forum.ionicframework.com/u/saurabhgupta050)\
**Post date:** [November 4, 2014, 7:01am UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/6 "2014-11-04T07:01:10Z")

</div>

In android manifest file change this, android:name=“HelloCordova”.

---

<div class="post-metadata">

**Author:** ![davor](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@davor](https://forum.ionicframework.com/u/davor)\
**Post date:** [November 4, 2014, 12:53pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/7 "2014-11-04T12:53:54Z")

</div>

Its funny that it works and I actually tried changing that. be aware that if you ‘platform rm/add’ it will get back to normal, si we can call this workaround till the official fix is released.

thanx gupta!

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [November 5, 2014, 9:24am UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/8 "2014-11-05T09:24:49Z")

</div>

guys guys guys!! careful when doing this! it crashes the app (on some verisions of android, ex 4.3) on startup if you dont do everything correct.  
You have to change the name in android:name in AndroidManifest.xml, the CordovaApp.java file name and its content “class CordovaApp” or [you’ll get this error](http://forum.ionicframework.com/t/app-crashes-on-startup-android/12193/2).

see here: [https://issues.apache.org/jira/browse/CB-7827](https://issues.apache.org/jira/browse/CB-7827)

---

<div class="post-metadata">

**Author:** ![davor](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@davor](https://forum.ionicframework.com/u/davor)\
**Post date:** [November 5, 2014, 1:13pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/9 "2014-11-05T13:13:49Z")

</div>

thanks @tobbe I will manually rename it to avoid any issues

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [November 5, 2014, 1:36pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/10 "2014-11-05T13:36:06Z")

</div>

There seems to be no reson to change the name though: [http://stackoverflow.com/questions/6245858/android-market-and-apk-file-name](http://stackoverflow.com/questions/6245858/android-market-and-apk-file-name)

---

<div class="post-metadata">

**Author:** ![omrzljak](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/omrzljak/32/64952_2.png) [@omrzljak](https://forum.ionicframework.com/u/omrzljak)\
**Post date:** [November 18, 2014, 10:11am UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/11 "2014-11-18T10:11:22Z")

</div>

It is android platform bug at least in 3.6.\* version. But in version 3.5.1 it works good (on windows). So I just did  
"\> ionic platform add android@3.5.1 --usenpm"

---

<div class="post-metadata">

**Author:** ![ajmoro](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ajmoro/32/113438_2.png) [@ajmoro](https://forum.ionicframework.com/u/ajmoro)\
**Post date:** [November 19, 2014, 10:02pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/12 "2014-11-19T22:02:51Z")

</div>

go to the following path:

C:\Users\[Your Username]\.cordova\lib\npm\_cache\cordova-android\3.6.4\package\bin\lib

open create.js and edit line 217

```
var safe_activity_name = "CordovaApp"

```

to be

```
var safe_activity_name = project_name.replace(/\W/g, ''); 

```

and everything will be working like before.

---

<div class="post-metadata">

**Author:** ![dayaki007](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dayaki007/32/8140_2.png) [@dayaki007](https://forum.ionicframework.com/u/dayaki007)\
**Post date:** [December 24, 2014, 7:13am UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/13 "2014-12-24T07:13:03Z")

</div>

> [@ajmoro](#):
>
> project\_name.replace(/\W/g, ‘’);

Its not working…I did that and still getting CordovaApp-debug file name

---

<div class="post-metadata">

**Author:** ![sakotturi](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sakotturi](https://forum.ionicframework.com/u/sakotturi)\
**Post date:** [December 30, 2014, 6:11pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/14 "2014-12-30T18:11:11Z")

</div>

I was able to change the apk name during the zipalign step:

`zipalign -v 4 CordovaApp-release-unsigned.apk MyOwnName.apk`

and this seems to work.

---

<div class="post-metadata">

**Author:** ![munyanyika](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/munyanyika/32/8315_2.png) [@munyanyika](https://forum.ionicframework.com/u/munyanyika)\
**Post date:** [January 9, 2015, 6:47pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/15 "2015-01-09T18:47:14Z")

</div>

Hi Guys.

I have just added a work around for this in the tutorials section:

[Renaming android .apk from CordovaApp to your app name](http://forum.ionicframework.com/t/renaming-android-apk-from-cordovaapp-to-your-app-name/15416)

I have built and tested my app and everything seems to be working just fine.

😉

---

<div class="post-metadata">

**Author:** ![munyanyika](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/munyanyika/32/8315_2.png) [@munyanyika](https://forum.ionicframework.com/u/munyanyika)\
**Post date:** [January 9, 2015, 6:50pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/16 "2015-01-09T18:50:16Z")

</div>

Check out the blog post:

[Renaming android .apk from CordovaApp to your app name](http://forum.ionicframework.com/t/renaming-android-apk-from-cordovaapp-to-your-app-name/15416)

I hope this eases you pain. ☀

---

<div class="post-metadata">

**Author:** ![dayaki007](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dayaki007/32/8140_2.png) [@dayaki007](https://forum.ionicframework.com/u/dayaki007)\
**Post date:** [January 9, 2015, 10:24pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/17 "2015-01-09T22:24:38Z")

</div>

Thanks @munyanyika It works for me.

---

<div class="post-metadata">

**Author:** ![munyanyika](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/munyanyika/32/8315_2.png) [@munyanyika](https://forum.ionicframework.com/u/munyanyika)\
**Post date:** [January 14, 2015, 9:13am UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/18 "2015-01-14T09:13:03Z")

</div>

Hi @tobbe you can change the apk name safely, I have added a tutorial to that effect [Renaming android .apk from CordovaApp to your app name](http://forum.ionicframework.com/t/renaming-android-build-apk-from-cordovaapp-to-your-app-name/15416)

Regards

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [January 14, 2015, 10:09am UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/19 "2015-01-14T10:09:45Z")

</div>

Hi, yea! I usually do it like @sakotturi said though: `zipalign -v 4 CordovaApp-release-unsigned.apk MyOwnName.apk` - less typing 😛

---

<div class="post-metadata">

**Author:** ![pacificregmi](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pacificregmi](https://forum.ionicframework.com/u/pacificregmi)\
**Post date:** [January 17, 2015, 4:53pm UTC](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702/20 "2015-01-17T16:53:43Z")

</div>

**How to Renaming/Change App Name HelloCordova/HelloAndroid/HelloIonic in an Ionic App**

Go to: [http://solutionfrominternet.blogspot.com/2015/01/how-to-renamingchange-app-name.html](http://solutionfrominternet.blogspot.com/2015/01/how-to-renamingchange-app-name.html)

[Next page](https://forum.ionicframework.com/t/android-build-keeps-using-cordovaapp-as-app-name/11702.md?page=2)
