在网上下载源码后因Studio版本问题运行时遇到的问题

网上下载的源码有一些因为Studio的更新导致不能直接使用,个人在使用过程中遇到的问题如下:

 

1.Could not find com.android.tools.build:gradle:3.0.0-alpha3

解决方法:在项目的build.gradle文件中

buildscript {

    repositories {

        google()          //加上这一行

        jcenter()

}

....

   allprojects {

    repositories {

        google()          //加上这一行

        jcenter()

    }

}

 

2.Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'

解决方法:在app的build.gradle文件中将compile替换为implementation

 

3.found an invalid color

解决方法:看一下.9.png文件是不是没有画黑线

 

4.右下角或者弹窗会有updata提示,不要点

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值