the android gradle plugin version 3.0.0-alpha1 is too old

背景:本地的AS升级为 3.0版本  导入其它的项目进来就报错  之前也遇到过并解决了 但时间太久远了 这次又综合网上各路大神的策略 耗费了大把时间终于搞定 故记录下来以备后期再踩坑

进入正题,问题现象如下

解决方法:

通过File>Projcet Structure 查看Gradle 与 Gradle plugin 版本分别为 4.0 与 3.0.0,

1.修改为 4.1 与 3.0.1

2.路径上分别添加 google()

然后clean一下项目就解决了次问题


the android gradle plugin version 3.0.0-alpha1 is too old_第1张图片
the android gradle plugin version 3.0.0-alpha1 is too old_第2张图片

问题原因:

这个问题就是Gradle 与 Android Gradle plugin 版本对应问题

版本对应表

你可能感兴趣的:(the android gradle plugin version 3.0.0-alpha1 is too old)