title: Android Studio gradle build for android compatible Android – 5.0 Lollipop etc
body: <p>I am able to successfully build APK file in Android studio by selecting minimum Android version is 5.0 (Lollipop) as part of creating android project in Android studio.</p>
  
  <p>But when i try to install APK in Android mobile ( 5.0 version), it gives Package Parsing error.</p>
  
  <p>i have also set minifyEnabled to true</p>
  
  <p>i have noticed that Android studio includes "compile 'com.android.support:appcompat-v7:24.2.0" though i select minimum version is Lollipop (5.0) . V24.2.0 is for marshmallow.</p>
  
  <p>any expert help me on this</p>
  
  <h1>AndroidManifest.xml</h1>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"
          android:theme="@style/AppTheme.NoActionBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <h1>build.gradle</h1>
  
  <p>enter code here</p>
  
  <pre><code>   apply plugin: 'com.android.application'
    android {
  compileSdkVersion 24
  buildToolsVersion "24.0.1"
  defaultConfig {
      applicationId "com.simpletest"
      minSdkVersion 21
      targetSdkVersion 24
      versionCode 1
      versionName "1.0"
      multiDexEnabled true
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }   
  }
     dependencies {
       compile fileTree(dir: 'libs', include: ['*.jar'])
       testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:24.2.0'
     compile 'com.android.support:design:24.2.0'
      }
  </code></pre>