kezong / fat-aar-android

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

Multiple Dimension Flavors Not supporting #324

Open sssvrock opened 3 years ago

sssvrock commented 3 years ago

I have multiple dimension flavors, when I am trying to add dependencies I am getting following error

single flavors working fine and multiple flavors not working

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method preprodClient1Embed() for arguments [{name=agent-sit-1.55, ext=aar}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandle

Build Environment

king-ma1993 commented 2 years ago

me too

nbirkenshaw-mux commented 2 years ago

This appears to be a core assumption in FatAarPlugin - in principle if all flavours are mentioned such that you match the variant.getFlavorName() + "Embed" then it should work, but this kind of defeats the point of flavours.

abdulazizumarovich commented 1 year ago

Any news about this issue?