很恶心的一个问题,百度没找到You appear to have guava-jdk5 on your project buildScript or buildSrc classpath

这里写图片描述
我之前是用AndroidStudio2.1.2的,升级到3.0.1之后,运行之前的项目出现如下错误,很恶心的一个问题

You appear to have guava-jdk5 on your project buildScript or buildSrc classpath. This is likely a transitive dependency of another gradle plugin.Run the buildEnvironment task to find out more. See https://issuetracker.google.com/38419426#comment8 for a workaround. 

按照它这的地址,没找到我要的答案
最后谷歌https://firebase.google.com/docs/perf-mon/get-started-android
问题答案在这。
列下解决办法

1,打开项目级 build.gradle 文件,并添加以下内容:
a,在 buildscript - > repositories 部分中:
jcenter()
b,在 buildscript - > dependencies 部分中:
classpath 'com.google.firebase:firebase-plugins:1.1.1'
2,打开应用级 build.gradle 文件,并添加以下内容:
a,在 apply plugin: 'com.android.application' 下面添加下面这行代码:
apply plugin: 'com.google.firebase.firebase-perf'
b,将以下代码添加至 dependencies 部分:
compile 'com.google.firebase:firebase-perf:11.4.0'
c,如果您的应用在使用其他 Firebase SDK,您还应该将这些 SDK 改为 11.4.0 版本。
重新编译您的应用。 现在,自动跟踪记录和 HTTP/HTTPS 网络请求即会受到监控。

运行后又出现下面的问题

Could not GET 'http://oss.jfrog.org/artifactory/oss-snapshot-local/com/google/firebase/firebase-perf/11.8.0/firebase-perf-11.8.0.pom'. Received status code 409 from server: Conflict Enable Gradle 'offline mode' and sync project

按照:https://firebase.google.com/docs/perf-mon/get-started-android
里面提的开发前提,将Google Play Services SDK安装好,问题就没了。
然而又出现如下问题:

Error:android-apt plugin is incompatible with the Android Gradle plugin.  Please use 'annotationProcessor' configuration instead.

我的解决办法去看http://blog.csdn.net/mo_feng_/article/details/78924641

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值