apply plugin: 'com.android.application'
应用插件:'realm-android‘
安卓{ compileSdkVersion 24 buildToolsVersion '26.0.2‘
defaultConfig {
applicationId "com.kolhapur.news"
minSdkVersion 14
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
/*重要提示:*更新依赖关系时要小心,不同版本的库可能会导致错误/依赖关系{编译fileTree(目录:'libs',包括:['.jar']) testCompile 'junit:junit:4.12‘//谷歌库编译'com.android.support:appcompat-v7:24.1.1’编译'com.android.support:cardview-v7:24.1.1‘编译’com.android.support:recyclerview v7:24.1.1‘编译'com.android.support:design:24.1.1’编译'com.android.support:support-v4:24.1.1‘compile 'com.google.android.gms:play-services-ads:9.2.1’compile 'com.google.android.gms:play-services-analytics:9.2.1‘compile 'com.google.firebase:firebase-messaging:9.2.1’
// library for api
compile('com.squareup.retrofit2:retrofit:2.0.0-beta4') {
exclude module: 'okhttp'
}**strong text**
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.0.1'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
// ripple effect library
compile 'com.balysv:material-ripple:1.0.2'
}
应用插件:'com.google.gms.google-services‘
发布于 2019-05-28 02:35:32
删除这些行
apply plugin: 'com.google.gms.google-services'
和
apply plugin: 'com.neenbedankt.android-apt'
这对我很有效。
https://stackoverflow.com/questions/49011771
复制相似问题