本篇为总结在迁移别人项目或新项目时候遇到的bug,希望能帮助到大家
并且持续更新 遇到bug希望各位将bug发在评论或私信
如有侵权 联系删除部分
BUG目录
Build时间过久
build时间超过五分钟甚至以上,尽快修改代码,使用国内镜像
在项目目录下的build.gradle下,
在repositories {}中添加
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
Error:(9, 0) Your project path contains non-ASCII characters.
Android Studio 打开的项目路径中不能含中文!!!甚至有时候你的电脑用户名为中文都不行!
The specified Gradle installation directory XXXX does not exist.
重新选择Gradle目录路径,选到自己的Gradle
打开Setting
在搜索框找到Gradle,在红框设置目录