Compiling error when app name is changed

Compiling error when app name is changed

Karim Mansour -
Number of replies: 4

I cloned the PhoneGap build of 3.6.1 and was able to compile it successfully until I change the name of the app in the config.xml, suddenly the android version is refusing to compile. It throws this error:


Error: Unable to graft xml at selector "/manifest/application/activity[@android:name='Moodle']" from "/var/gimlet/tmp/47164946656600/3527725/app/src/main/AndroidManifest.xml" during config install

Վարկանիշների միջին թիվը. -
In reply to Karim Mansour

Re: Compiling error when app name is changed

Dennie Walker -

Having the same issue.

Can someone lend some assistance please.

Much appreciated

Thanks

In reply to Dennie Walker

Re: Compiling error when app name is changed

Peter Upfold -

I'm afraid I don't know anything about PhoneGap builds; I am building this manually on a Windows system for Android.

After editing the app identifiers in all the places -- at least src/config.json and config.xml, I needed to cordova platform remove android and cordova platform add android again afterwards to completely regenerate the Android platform project.

In reply to Karim Mansour

Re: Compiling error when app name is changed

Juan Leyva -
Core developers Նկարը Moodle HQ Նկարը Plugin developers Նկարը Testers Նկարը

Hi,

this is because you have to change the word 'Moodle' everywhere in the config.xml file

This was changed in the latest version currently in integration to avoid this type of errors though

Regards, Juan