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

Kelvin Dart updated CB-8864:
----------------------------
    Description: 
Please can you add in the following to the build.gradle script for the android 
module in the cordova-android project:

{code}
...

android {
    lintOptions {
        checkReleaseBuilds false
    }
}

...
{code}

Or:

{code}
...

android {
    lintOptions {
        abortOnError false
    }
}

...
{code}

The former has the advantage that all lint errors will display for debug 
purposes should you need to review them.

The issue occurred when using the plugin com.phonegap.plugins.barcodescanner 
and creating a signed APK in Android Studio - this plugin uses translations and 
because the strings.xml contains additional items which are not present in the 
plugin's translation XML files, Lint/Android Studio throws a wobbly and does 
not export the APK because of an error.

It could be argued that the plugin should alter their XML translations and 
include the MissingTranslations attribute, but there are over 30 files and this 
fix seemed to quickly resolve the issue instead of editing each one manually.

See: 
[http://stackoverflow.com/questions/27472282/how-to-sign-apk-on-android-studio-even-with-non-translated-strings]
 for more info.

  was:
Please can you add in the following to the build.gradle script for the android 
module in the cordova-android project:

{code}
...
android {
    lintOptions {
        checkReleaseBuilds false
    }
}
...
{code}

Or:

{code}
...
android {
    lintOptions {
        abortOnError false
    }
}
...
{code}

The former has the advantage that all lint errors will display for debug 
purposes should you need to review them.

The issue occurred when using the plugin com.phonegap.plugins.barcodescanner 
and creating a signed APK in Android Studio - this plugin uses translations and 
because the strings.xml contains additional items which are not present in the 
plugin's translation XML files, Lint/Android Studio throws a wobbly and does 
not export the APK because of an error.

It could be argued that the plugin should alter their XML translations and 
include the MissingTranslations attribute, but there are over 30 files and this 
fix seemed to quickly resolve the issue instead of editing each one manually.

See: 
[http://stackoverflow.com/questions/27472282/how-to-sign-apk-on-android-studio-even-with-non-translated-strings]
 for more info.


> Add lintOptions (checkReleaseBuilds OR abortOnError) to the build.gradle 
> script when exporting an SDK
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CB-8864
>                 URL: https://issues.apache.org/jira/browse/CB-8864
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 4.0.0
>         Environment: Mac OS X 10.10.3; [email protected]; 
> [email protected]; Android Studio
>            Reporter: Kelvin Dart
>            Priority: Minor
>              Labels: android, android-studio, gradle
>
> Please can you add in the following to the build.gradle script for the 
> android module in the cordova-android project:
> {code}
> ...
> android {
>     lintOptions {
>         checkReleaseBuilds false
>     }
> }
> ...
> {code}
> Or:
> {code}
> ...
> android {
>     lintOptions {
>         abortOnError false
>     }
> }
> ...
> {code}
> The former has the advantage that all lint errors will display for debug 
> purposes should you need to review them.
> The issue occurred when using the plugin com.phonegap.plugins.barcodescanner 
> and creating a signed APK in Android Studio - this plugin uses translations 
> and because the strings.xml contains additional items which are not present 
> in the plugin's translation XML files, Lint/Android Studio throws a wobbly 
> and does not export the APK because of an error.
> It could be argued that the plugin should alter their XML translations and 
> include the MissingTranslations attribute, but there are over 30 files and 
> this fix seemed to quickly resolve the issue instead of editing each one 
> manually.
> See: 
> [http://stackoverflow.com/questions/27472282/how-to-sign-apk-on-android-studio-even-with-non-translated-strings]
>  for more info.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to