wurensen/gradle_plugin_android_aspectjx

Android Studio Bumblebee + Gradle 7.2 无法配置

Closed this issue · 1 comments

zhumj commented

环境:

AS:

Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 2, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 4
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: cn.haojiyou.CodeGlance3 (2.1.0), mobi.hsz.idea.gitignore (4.1.0), org.jetbrains.kotlin (211-1.6.20-release-
275-AS7442.40), cn.yiiguxing.plugin.translate (3.3.1-203u212.patch.1), org.intellij.plugins.markdown (211.7142.37)

Gradle 版本: 7.2

Gradle 插件版本: 7.1.1

配置:

根 build.gradle:

plugins {
     ...
     id 'io.github.wurensen' version '2.0.14' apply false
 }

APP build.gradle:

plugins {
    id 'com.android.application'
    id 'android-aspectjx'
    id 'org.jetbrains.kotlin.android'
}

报错:

org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'io.github.wurensen.gradle.plugin', version: '2.0.14', 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 'io.github.wurensen.gradle.plugin:io.github.wurensen.gradle.plugin.gradle.plugin:2.0.14')
zhumj commented

通过 #13 写回allprojects 解决