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.
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.
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.
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"