问题:Failed to find Platform SDK with path: platforms;android-S
1 2 3 4
| 原因:gradle.properties中的COMPILE_SDK=android-S找不到,缺少sdk; 解决: 1.通过tool-SDK Manager-Android SDK中查看已安装的sdk版本如:android-13(对应的API LEVEL 33) 2.gradle.properties中的COMPILE_SDK修改为COMPILE_SDK=android-33
|
问题: Failed to connect to android.googlesource.com port 443 after 21168 ms: Timed out
1 2 3 4 5 6 7 8 9 10
| 原因:使用了vpn,浏览器可以正常访问aomedia.googlesource.com,但是使用git就报错,需要设置git也是用vpn 解决方案1:git config --global http.proxy 127.0.0.1:你的vpn所用端口号 //比如vpn默认代理端口是1080,那上面的命令就是git config --global http.proxy 127.0.0.1:1080 解决方案2: 在使用时,将 https://android.googlesource.com/ 全部使用清华镜像: https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/ 代替即可。 例如:原来为 git clone https://android.googlesource.com/platform/packages/apps/Launcher3 替换为 git clone https://mirrors.tuna.tsinghua.edu.cn/git/AOSP//platform/packages/apps/Launcher3
|