title: Convert gradle file to MK file( build.gradle to Android.mk )
body: <p>I used the below gradle to build my sample application.</p>
  
  <h2>build.gradle</h2>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      defaultConfig {
          resConfigs "en","ja"
      }
      buildTypes {
          release {
             shrinkResources true
             useProguard true 
             minifyEnabled true
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      splits {
         density {
  
              enable true
              exclude 'ldpi', 'tvdpi', 'xxxhdpi'
          }
          abi {
  
              enable true
              reset()
              include 'x86', 'armeabi-v7a', 'mips'
              universalApk false
  
          }
      }
  }
  </code></pre>
  
  <p><strong>Objectives of this test</strong></p>
  
  <p><strong>1.Remove the unused resource files from the application</strong></p>
  
  <p><strong>2.To get better understanding on resource handling.</strong> </p>
  
  <p>I successfully done this with android studio using gradle.</p>
  
  <p>Now, I want to do the same with ASOP build.</p>
  
  <pre><code>Android.mk file
  --------------------------------------------
  ifneq ($(TARGET_BUILD_PDK), true)
  LOCAL_PATH:= $(call my-dir)
  include $(CLEAR_VARS)
  LOCAL_SRC_FILES := $(call all-java-files-under, src)
  
  LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \
  frameworks/support/v7/appcompat/res \
  frameworks/support/design/res
  
  LOCAL_PACKAGE_NAME := sampleapp
  LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
  LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
  LOCAL_CERTIFICATE := platform
  LOCAL_MODULE_TAGS := optional
  LOCAL_PRIVILEGED_MODULE := true
  LOCAL_USE_AAPT2 := true
  LOCAL_DEX_PREOPT := true
  
  LOCAL_PROGUARD_ENABLED := full
  
  LOCAL_AAPT_FLAGS := --auto-add-overlay
  include $(BUILD_PACKAGE)
  endif
  </code></pre>
  
  <p>But while doing ASOP build i don't know how to set the below flags in Android.mk file.</p>
  
  <p><strong>shrinkResources true</strong></p>
  
  <p><strong>minifyEnabled true</strong></p>
  
  <p><strong>exclude 'ldpi', 'tvdpi', 'xxxhdpi'</strong></p>
  
  <p>Kindly guide me to solve this issue.</p>