Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8685

Cannot create signed APK in Android Studio due to translation / strings.xml errors in generated Android project

    XMLWordPrintableJSON

Details

    Description

      I've been playing with cordova-android 4.0.0-dev in Android Studio v1.1.0.

      It seems to work fine when building or running on a device.

      However, when I generate a signed APK, there are a few translation errors that come up:

      1. It complains that the locale-specific string files contain an entry for `<string name="menu_settings">`, but the default `strings.xml` does not.
        I worked around that by just adding that entry into strings.xml
      2. It complains that the strings.xml and arrays.xml do not contain translations for all locales.
        If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.
        I worked around that by changing both xmls to ignore the "MissingTranslation" error:
        <resources xmlns:tools="http://schemas.android.com/tools"
            tools:ignore="MissingTranslation">

      Once those were fixed, I was able to generate my signed APK in Android Studio.

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            asgeo1 Adam George
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: