Skip to content Skip to sidebar Skip to footer

Error When Running Cordova Build –release Android

I'm trying to publish my Android app by following the instructions here: http://ionicframework.com/docs/guide/publishing.html However, when I run cordova build --release android I

Solution 1:

Solved this by adding

lintOptions {
    abortOnError false
}

to the android {} section in /platforms/android/build.gradle

Solution 2:

Add the following entry to the /platforms/android/build.gradle file in your Ionic project:

android {
   lintOptions { disable'MissingTranslation', 'ExtraTranslation' }
}

worked.

Solution 3:

For those who prefer to keep platforms directory out of the VCS (Git, etc), the best solution at the moment is to use a plugin called ignore-lint-translation.

cordova plugin add cordova-plugin-ignore-lint-translation--save

The effective result is the addition of a gradle file that will disable such lint options (doh!).

Solution 4:

One can be more specific by just adding

lintOptions {
    disable MissingTranslation
}

Solution 5:

To fixed this error you should add

lintOptions {
    checkReleaseBuilds false// Or, if you prefer, you can continue to check for errors in release builds,// but continue the build even when errors are found:
    abortOnError false
}

In android {} section in /platforms/android/build.gradle

Post a Comment for "Error When Running Cordova Build –release Android"