This is a migrated thread and some comments may be shown as answers.

Android build failure due to missing id from config.xml

0 Answers 167 Views
News & Updates
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Garo
Top achievements
Rank 1
Garo asked on 01 Sep 2016, 09:36 AM

Affects: The build failure is expected to occur for hybrid AppBuilder projects that do not include the id="$AppIdentifier$" attribute inside the widget tag of their Android Config.xml file.

Error: Error: The value of package from AndroidManifest.xml and the value of id from config.xml are different. If you want to change the appIdentifier only for Android you must set the new value in AndroidManifest.xml and in config.xml.

Reason: With previous AppBuilder release, we introduced an id attribute to the widget tag located in the Android Config.xml file. Projects created before this release, do not contain this attribute. The value of id is identical to the value of the package attribute inside the AndroidManifest.xml file. Our latest release introduces a comparison that determines if the id and package attributes are identical. If one is missing or the values are different the Android build will fail.

Resolution: We are currently working on the issue and we expect to introduce a fix by the end of the day. Until then you can use the following workaround.

Workaround:

  1. Open your application
  2. Open the Android Config.xml and AndroidManifest.xml files.
  3. Check the package attribute value in the AndroidManifest.xml. If you haven't modified this value it should be "$AppIdentifier$".
  4. Add an id attribute to the widget tag inside the Android Config.xml file. Its value should be identical to the package attribute value. For example, if the value is "$AppIdentifier$":

<widget id = "$AppIdentifier$"
        xmlns = "http://www.w3.org/ns/widgets"
        version = "2.0.0">

 

 

If the solution provided above is not helpful, please contact our support team for further assistance.

    

 

Tags
News & Updates
Asked by
Garo
Top achievements
Rank 1
Share this question
or