I created a chat project using android studio 1.0.1
this is the gradle build properties
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "chat.mchattrav.chattrav"
minSdkVersion 5
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
when I run the application I get this error message Immediately
unfortunately app has stopped
when I debug the application I get this exception information
java.lang.NoSuchMethodError: android.os.StatFs.getBlockSizeLong
It seems like I used lower api level than "18" which required by this method
can I solve this problem without the need to increase the api level "minSdkVersion"?
can I use the support library instead ?