I have my minSdkVersion
set to 21 but my app fails to run on other other versions except 7.*
To be detailed the app successfully installs and runs perfectly on Nougat based ROMs (API level 24 and 25) but on ROMs based on API 23 or below the apk simple doesnt installs. It just says app not installed. :(
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.rishav.t2"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "0.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.jakewharton:butterknife:8.6.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
compile 'com.android.support:design:25.4.0'
compile 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.android.support:support-v4:25.4.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-auth:11.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-database:11.0.1'
}
apply plugin: 'com.google.gms.google-services'
Is it because my compileSdkVersion
is set to Nougat?