kezong / fat-aar-android

A gradle plugin that merge dependencies into the final aar file works with AGP 3.+
MIT License
3.13k stars 621 forks source link

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

Open haipinghuang opened 2 years ago

haipinghuang commented 2 years ago

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:

Build Environment

Zhanghao0150 commented 2 years ago

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

zhuangjy24 commented 2 years ago

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

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

iStride17 commented 2 years ago

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

AnyLifeZLB commented 1 year ago

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

nier2021 commented 1 year ago

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