更改文件路径:D:\UnityEditor\2020.3.10f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\GradleTemplates其中2020.3.10f1c1为编辑器版本
更改baseProjectTemplate.gradle文件的位置
maven{ url 'https://maven.aliyun.com/repository/google'}
maven{ url 'https://maven.aliyun.com/repository/jcenter'}
![](https://www.keyboardmeow.com/wp-content/uploads/2024/04/image-11-1024x929.png)
一共两处,在repositories下改
————————————————
原文链接:https://blog.csdn.net/zuosiran001/article/details/120211528