I am trying L and got an API level error. I have set the current min to 'L' but it seems Android Studio think it's 20.
How to fix it?
I am trying L and got an API level error. I have set the current min to 'L' but it seems Android Studio think it's 20.
How to fix it?
我将 Android Studio 0.6.1 更新为 0.8.0,错误消失了。
build.gradle 看起来完全一样:
compileSdkVersion 'android-L'
buildToolsVersion '19.1.0'
defaultConfig {
applicationId 'com.prt2121.tryl'
minSdkVersion 'L'
targetSdkVersion 'L'
versionCode 1
versionName '1.0'
}
我不认为我的问题是重复的,但无论如何谢谢。
改变
android {
compileSdkVersion 'android-L'
buildToolsVersion '19.1.0'
至
android {
compileSdkVersion 21
buildToolsVersion '21.0.2'
注意android-L
是单引号,但21
不是。21
是整数而不是字符串。