这是我的gradle.build(app)...我的应用程序不支持Android 4.4.4或更低版本的设备。我的第一个版本支持所有设备但在更新我的SDK和Google Play服务后,它不支持4.4.4或更低版本。以前我的firebase版本是9.0.0,但现在我已经将其更改为11.0.1,因为firebase分析没有在它上面工作。
apply plugin: 'com.android.application'
android {
signingConfigs {
config {
keyAlias 'CSSkey'
keyPassword 'romasa123'
storeFile file('C:/Users/Romasa Khalid/AndroidStudioProjects/CSS.jks')
storePassword 'romasa123'
}
}
compileSdkVersion 25
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "romasakhalid.css"
minSdkVersion 14
targetSdkVersion 25
versionCode 3
versionName "1.1.1"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
dexOptions {
preDexLibraries = false
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',{
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-v4'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:mediarouter-v7:25.3.1'
compile 'com.android.support:palette-v7:25.3.1'
compile 'com.google.android.gms:play-services-analytics:11.0.1'
compile 'com.google.firebase:firebase-ads:11.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.google.firebase:firebase-core:11.0.1'
compile 'com.google.firebase:firebase-database:11.0.1'
compile 'com.firebaseui:firebase-ui-database:2.0.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
}