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

AGP版本7.4.0会导致编译不过 #87

Open
guozhiqiang123 opened this issue May 15, 2024 · 0 comments
Open

AGP版本7.4.0会导致编译不过 #87

guozhiqiang123 opened this issue May 15, 2024 · 0 comments

Comments

@guozhiqiang123
Copy link

AndroidJunkCode版本:1.3.2

gradle版本
7.5

AGP版本
7.4.0

JDK版本
11

productFlavors配置

androidJunkCode配置
androidJunkCode {
def config = {
println("==========Start Junk Code Generate================")
//注意:这里的release是变体名称,如果没有设置productFlavors就是buildType名称,如果有设置productFlavors就是flavor+buildType,例如(freeRelease、proRelease)
packageBase = "com.maxcleaner.superb.app" //生成java类根包名
packageCount = 16 //生成包数量
activityCountPerPackage = 6 //每个包下生成Activity类数量
excludeActivityJavaFile = false
//是否排除生成Activity的Java文件,默认false(layout和写入AndroidManifest.xml还会执行),主要用于处理类似神策全埋点编译过慢问题
otherCountPerPackage = 26 //每个包下生成其它类的数量
methodCountPerClass = 26 //每个类下生成方法数量
resPrefix = "cleaner_pro_" //生成的layout、drawable、string等资源名前缀
drawableCount = 36 //生成drawable资源数量
stringCount = 36 //生成string数量
}
variantConfig {
betaLogRelease config
playLogRelease config
playRelease config
}
}

bug描述
报错信息如下:
Execution failed for task ':app:mapBetaLogReleaseSourceSetPaths'.

Querying the mapped value of map(flatmap(provider(task 'generateBetaLogReleaseJunkCode', class cn.hx.plugin.junkcode.task.GenerateJunkCodeTask))) before task ':app:generateBetaLogReleaseJunkCode' has completed is not supported

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

1 participant