1.注意下面的几个版本要对上 classpath 'com.android.tools.build:gradle:4.2.2' distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip 2.在gitlab上添加自己的ssh 注意,android studio - settings -Version Control - git -- 一定要勾选上use credential helper !!! 不然是无法push代码到gitlab的 3.android studio 版本不要太新,使用 2021.2.1 patch 2即可