我在app.gradle的第1行得到了编译错误
防火墙插件依赖于番石榴jdk-5
build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.1.1'
// FireBase Crash Reporting
classpath 'com.google.firebase:firebase-plugins:1.0.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}app.gradle
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.firebase-crash' // FireBase Crash Reporting plugin to uplaod the mapping file发布于 2017-11-24 15:07:16
只需更新firebase插件就可以解决这个问题:
classpath 'com.google.firebase:firebase-plugins:1.1.5'或者将番石榴-jdk5 5排除在插件之外。
classpath ('com.google.firebase:firebase-plugins:1.1.0') {
exclude group: 'com.google.guava', module: 'guava-jdk5'
}https://stackoverflow.com/questions/47475936
复制相似问题