Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin [id: 'com.kezong.fat-aar', version: '1.3.8', apply: false] was not found #390

Open
haipinghuang opened this issue Jul 11, 2022 · 5 comments

Comments

@haipinghuang
Copy link

haipinghuang commented Jul 11, 2022

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.

plugins {
id 'com.android.application' version '7.1.2' apply false
id 'com.android.library' version '7.1.2' apply false
id 'com.kezong.fat-aar' version '1.3.8' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}

settings.gradle:

pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "ProguardDemo"
include ':app'
include ':libA'
include ':libB'

`
然后点击sync或是run按钮都是提示如下

Plugin [id: 'com.kezong.fat-aar', version: '1.3.8', apply: false] was not found in any of the following sources:
Plugin [id: 'com.kezong.fat-aar', version: '1.2.16', apply: false] was not found in any of the following sources:

具体日志如下
`
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

  • Operating System: win11
  • Gradle Plugin Version: unknow,may be 7.1.2
  • Gradle Version: 7.2
  • Fat-aar Version: 1.3.8 or 1.2.16
@Zhanghao0150
Copy link

在项目根目录的build.gradle加上这个配置这个试试
// 省略...
buildscript {
// 省略...
dependencies {
classpath 'com.github.kezong:fat-aar:1.3.8'
}
}

@zhuangjy24
Copy link

在项目目录下的build.gradle 加上这个配置可用:
buildscript{
dependencies {
classpath 'com.github.kezong:fat-aar:1.3.8'
}
}

plugins {
//省略
}
要放在plugins 前面,settings.gradle 不用改

@iStride17
Copy link

一样的问题,有结果了么?

@AnyLifeZLB
Copy link

根据上面的提示做了也没有用

@nier2021
Copy link

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
.....
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants