https://www.jianshu.com/p/434928537a90
在我使用构建版本gradle 26但是在将buildtoolsversion更改为27之后,就像这个图像
![](http://upload-images.jianshu.io/upload_images/7424440-050d4f1a001d5e43.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
错误:error build gradle screenshot
![](http://upload-images.jianshu.io/upload_images/7424440-a985a78829f2efeb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
在gradle.build中添加以下内容:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
如下:
![](http://upload-images.jianshu.io/upload_images/7424440-b77633d915a65e8e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
完美解决
作者:凤李坤_1129
链接:https://www.jianshu.com/p/434928537a90
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。