K20*_*0GH 1 android gradle android-cardview
我正在尝试通过添加以下行来为我的应用添加低于Android L的设备的CardView支持:
compile 'com.android.support:cardview-v7:21.+'
Run Code Online (Sandbox Code Playgroud)
然后我将compileSdkVersion和targetSdkVersion添加到'android-L'
现在,除非我弄错了,我认为这将建立在4.4.4中我的Nexus 5上,但是我得到了错误
失败[INSTALL_FAILED_OLDER_SDK]
我错过了什么或误解了吗?完整build.gradle如下:
apply plugin:'com.android.application'
android {
compileSdkVersion 'android-L'
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.gh.app"
minSdkVersion 15
targetSdkVersion 'android-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'])
wearApp project(':wear')
compile 'com.google.android.gms:play-services-wearable:+'
compile 'com.android.support:support-v4:20.0+'
compile files('libs/TalkClient.jar')
compile 'com.android.support:cardview-v7:21.+'
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4144 次 |
| 最近记录: |