cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Mindus (JIRA)" <>
Subject [jira] [Commented] (CB-9448) 'aaptOptions' does not work in Cordova Gradle building
Date Tue, 01 Dec 2015 10:53:11 GMT


Christopher Mindus commented on CB-9448:

This is the way to make it work:

In platforms/android/build-extras.gradle, set e.g.:

ext.postBuildExtras = {
    android {
		aaptOptions {
			ignoreAssetsPattern "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"

It would be very nice if the Cordova documentation could reflect this...

> 'aaptOptions' does not work in Cordova Gradle building
> ------------------------------------------------------
>                 Key: CB-9448
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Christopher Mindus
>            Assignee: Andrew Grieve
> The aaptOptions configuration for Gradle building does not work. It can be made to work
only with Ant (using another mechanism). The build-extras.gradle file does not help (in the
platforms/android) directory. The build.gradle file cannot be used. Environment variables
do not work either. In projects using e.g. the Dojo Framework that contains directory names
that start with an underscore "_" are all removed with any Gradle build, but can be made to
work in Ant build.
> There are some reports that can be found on "google" about this problem, and nobody has
apparently reported it.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message