cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam George (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-8685) Cannot create signed APK in Android Studio due to translation / strings.xml errors in generated Android project
Date Mon, 16 Mar 2015 22:26:38 GMT

     [ https://issues.apache.org/jira/browse/CB-8685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adam George updated CB-8685:
----------------------------
    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:

# 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

# 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:

        {code:xml}<resources xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="MissingTranslation">{code}


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


  was:
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:

        {code:xml}<resources xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="MissingTranslation">{code}


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



> Cannot create signed APK in Android Studio due to translation / strings.xml errors in
generated Android project
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-8685
>                 URL: https://issues.apache.org/jira/browse/CB-8685
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 4.0.0
>            Reporter: Adam George
>              Labels: android, android-studio
>
> 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:
> # 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
> # 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:
>         {code:xml}<resources xmlns:tools="http://schemas.android.com/tools"
>     tools:ignore="MissingTranslation">{code}
> Once those were fixed, I was able to generate my signed APK in Android Studio.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message