I am learning material design which Google introduced recently. I am using Android Studio for writing code of my application.
When I build the project then it doesn't not show any errors in my code but at the last I get everytime same error message.
Failure [INSTALL_FAILED_OLDER_SDK]
I have seen many threads on stackoverflow Failure [INSTALL_FAILED_OLDER_SDK] Android-L but that didn't answer to my question.
I am testing an app on Android 4.4.4. I don't want to compile the project against API 19. I want to have material theme of my application as well I want to use new api whichever added in Android L.
How this can be possible to compile the project against Android L for lower android versions ?
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 'android-L'
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "multipanelayout.example.com.multipanelayoutdemo"
minSdkVersion 15
targetSdkVersion 'L'
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
values - styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
values-21 - styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.Material.Light">
</style>
</resources>
Thanks in advance.