Ionic Build --release w/ Crosswalk lint errors


#1

Hey gang,

Trying to ionic build --release android after installing Crosswalk and I’m encountering some lint errors that I’m not quite sure how to fix:

Not quite sure how to get these to go away. Seems like you can disable lintErrors in the gradle build file, but I’m not quite sure where to find that.

Thanks for your help,
Matt


#2

I’m having the exact same issue. This blog post is really helpful, but like you, I can’t find the actual build.gradle file, so I’m rather stuck. It appears that this file gets generated as part of the ionic build step, but I can’t find anywhere where I could set the lintOptions property and have it be consumed by the build.

Anyone have any thoughts on this?

Thanks!


#3

Hey, I actually wound up finding a solution! In your /platforms/android/ folder create a file called lint.xml with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<lint>
	<issue
        id="MissingTranslation"
        severity="ignore" />
    <issue
        id="ExtraTranslation"
        severity="ignore" />
</lint>

#4

great solution!!! ^


#5

Excellent solution! Saved me so much time.


#6

Not a great solution, the platforms folders are generated and therefore shouldn’t be touched. Please make this a config.xml option.


#7

Does this option make it into Ionic Config.xml yet or I have to do the hack mentioned above?