You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kelvin Dart (JIRA)" <ji...@apache.org> on 2015/04/16 12:14:58 UTC

[jira] [Updated] (CB-8864) Add lintOptions (checkReleaseBuilds OR abortOnError) to the build.gradle script for the default cordova-android project

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

Kelvin Dart updated CB-8864:
----------------------------
    Summary: Add lintOptions (checkReleaseBuilds OR abortOnError) to the build.gradle script for the default cordova-android project  (was: Add lintOptions (checkReleaseBuilds OR abortOnError) to the build.gradle script when exporting an SDK)

> Add lintOptions (checkReleaseBuilds OR abortOnError) to the build.gradle script for the default cordova-android project
> -----------------------------------------------------------------------------------------------------------------------
>
>                 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; cordova-cli@4.3.0; cordova-android@4.0.0; 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org