Open haipinghuang opened 2 years ago
在项目根目录的build.gradle加上这个配置这个试试 // 省略... buildscript { // 省略... dependencies { classpath 'com.github.kezong:fat-aar:1.3.8' } }
在项目目录下的build.gradle 加上这个配置可用: buildscript{ dependencies { classpath 'com.github.kezong:fat-aar:1.3.8' } }
plugins { //省略 } 要放在plugins 前面,settings.gradle 不用改
一样的问题,有结果了么?
根据上面的提示做了也没有用
build.gradle(Project):
buildscript{ dependencies { classpath 'com.github.kezong:fat-aar:1.3.8' } } plugins { id 'com.android.application' version '7.2.2' apply false ..... }
Plugin fat-aar was not found 我新建了一个demo项目,能正常运行的。然后添加fat-aar,配置如下; 项目build.gradle: ` // Top-level build file where you can add configuration options common to all sub-projects/modules.
settings.gradle:
` 然后点击sync或是run按钮都是提示如下
具体日志如下 ` Build file 'E:\project\android\otherProj\ProguardDemo\build.gradle' line: 5 Plugin [id: 'com.kezong.fat-aar', version: '1.3.8', apply: false] 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.
Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.kezong.fat-aar', version: '1.3.8', apply: false] was not found in any of the following sources:
Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
Plugin Repositories (could not resolve plugin artifact 'com.kezong.fat-aar:com.kezong.fat-aar.gradle.plugin:1.3.8') Searched in the following repositories: Gradle Central Plugin Repository Google MavenRepo at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:222 )`
Build Environment