一、问题背景
依然是构建项目遇到问题
Build file 'D:\Android Studio Project\3platform_shop_java-main\Kursinis_android\build.gradle' line: 2
Plugin [id: 'com.android.application'] was not found in any of the following sources:
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (plugin dependency must include a version number for this source)
二、解决过程:
1.查询是否可以链接到阿里云maven仓库
在命令行窗口输入
ping maven.aliyun.com
可以连接
2.注释掉不好用的网络代理
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.60.(因Gradle代理设置问题导致)-优快云博客