title: Configure gradle.properties android.enableAapt=false on travis yml file
body: <p>In my android's <code>gradle.properties</code> I have the following:</p>
  
  <pre><code>android.enableAapt2=false
  </code></pre>
  
  <p>My <code>gradle.properties</code> is located in my <code>~/.gradle/gradle.properties</code> in my local machine.</p>
  
  <p>I am wondering how I can add <code>android.enableAapt=false</code> to my yml file.</p>
  
  <p>I tried to add it under global but that didn't work there was no errors but in <code>robolectric</code> it needs to be set if you are using <code>gradle:3.0.0-beta3</code>. </p>
  
  <pre><code>language: android
  
  jdk: oraclejdk8
  
  env:
    global:
      - ANDROID_TARGET=android-25
      - ANDROID_ABI=armeabi-v7a
      - android.enableAapt2=false
  
  android:
    components:
    - tools
    - platform-tools
    - build-tools-25.0.3
    - android-25
    - extra-android-m2repository
    - sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
  
  
  licenses:
    - android-sdk-license-.+
    - '.+'
  
  script:
      - ./gradlew --daemon build jacocoTestReport --info
  
  after_success:
      - bash &lt;(curl -s https://codecov.io/bash)
  </code></pre>
  
  <p>Below is the configuration file that is on travis-ci</p>
  
  <pre><code>{
    "language": "android",
    "jdk": "oraclejdk8",
    "android": {
      "components": [
        "tools",
        "platform-tools",
        "build-tools-25.0.3",
        "android-25",
        "extra-android-m2repository",
        "sys-img-${ANDROID_ABI}-${ANDROID_TARGET}"
      ]
    },
    "licenses": [
      "android-sdk-license-.+",
      ".+"
    ],
    "script": [
      "./gradlew --daemon build jacocoTestReport --info"
    ],
    "after_success": [
      "bash &lt;(curl -s https://codecov.io/bash)"
    ],
    "global_env": "ANDROID_TARGET=android-25 ANDROID_ABI=armeabi-v7a android.enableAapt2=false",
    "group": "stable",
    "dist": "precise",
    "os": "linux"
  }
  </code></pre>
  
  <p>Class under test:</p>
  
  <pre><code>public class RecipeListViewHolderTest extends BaseRobolectricTestRunner {
      @Inject Map&lt;Integer, RecipeListViewHolderFactory&gt; viewHolderFactories;
      @Inject @LayoutRes int recipeItem; /* This is injected return R.layout.recipe_item; */
  
      private RecipeListViewHolder recipeListViewHolder;
  
      @Before
      public void setup() {
          getTestComponent().inject(RecipeListViewHolderTest.this);
          final Context context = ShadowApplication.getInstance().getApplicationContext();
  
          final View view = View.inflate(
                  context,
                  recipeItem,
                  new LinearLayout(context));
  
          recipeListViewHolder = viewHolderFactories.get(Constants.RECIPE_LIST).create(view);
          assertThat(recipeListViewHolder, is(notNullValue()));
      }
  
      private Recipe createRecipeData() {
          Recipe recipe = new Recipe();
          recipe.setName("Test Brownies");
          recipe.setServings(10);
  
          return recipe;
      }
  
      @Test
      public void testRecipeDataIsPopulated() {
          recipeListViewHolder.populateDate(createRecipeData());
  
          assertThat(recipeListViewHolder.tvQuantity.getText().toString(), is("Quantity: 10"));
          assertThat(recipeListViewHolder.tvRecipeName.getText().toString(), is("Test Brownies"));
      }
  }
  </code></pre>
  
  <p>Robolectric:</p>
  
  <pre><code>@Config(constants = BuildConfig.class,
          sdk = Build.VERSION_CODES.LOLLIPOP,
          packageName = "me.androidbox.busbybaking",
          application = BusbyBakingApplication.class)
  @RunWith(RobolectricTestRunner.class)
  public abstract class BaseRobolectricTestRunner {
  
      protected TestBusbyComponent getTestComponent() {
          return DaggerTestBusbyComponent.builder()
                  .mockRecipeListModule(new MockRecipeListModule())
                  .mockRecipeSchedulersModule(new MockRecipeSchedulersModule())
                  .build();
      }
  }
  </code></pre>
  
  <p>The travis-ci error log:</p>
  
  <pre><code>me.androidbox.busbybaking.recipieslist.RecipeListViewHolderTest &gt; testRecipeDataIsPopulated FAILED
      android.content.res.Resources$NotFoundException: me.androidbox.busbybaking:layout/recipe_item
          at org.robolectric.shadows.ShadowAssetManager.loadXmlResourceParser(ShadowAssetManager.java:391)
          at org.robolectric.shadows.ShadowResources.loadXmlResourceParser(ShadowResources.java:211)
          at android.content.res.Resources.loadXmlResourceParser(Resources.java)
          at android.content.res.Resources.getLayout(Resources.java:1049)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:412)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
          at android.view.View.inflate(View.java:18415)
          at me.androidbox.busbybaking.recipieslist.RecipeListViewHolderTest.setup(RecipeListViewHolderTest.java:41)
  </code></pre>
  
  <p>I think that the travis-ci cannot find where the res folder is as the layout/recipe_item cannot be found:</p>
  
  <pre><code> android.content.res.Resources$NotFoundException: me.androidbox.busbybaking:layout/recipe_item
  </code></pre>