网上下载的源码有一些因为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文件是不是没有画黑线