Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the "ExtractAarTransform" in Gradle task "preDebugBuild" really mean?

Tags:

android

gradle

I collected the Gradle log from my daily build in Android, and I am wondering what is the meaning of

Executing transform IdentityTransform -> ExtractAarTransform -> AarTransform on artifact support-core-ui.aar (com.android.support:support-core-ui:28.0.0)

Just add the support-core-ui:28.0.0 aar to the classpath ? That's all? correct me if I'm wrong. Thanks!

like image 360
xiaobin yáng Avatar asked Sep 21 '25 03:09

xiaobin yáng


1 Answers

For aar dependencies, it usually includes .jar (the class files), aidl, jni libs and resources, when you integrate it to your project, gradle tasks will extract those classes and other folders for subsequent steps to process, this is what ExtractAarTransform does, see source code ExtractAarTransform.

For AarTransform, it returns the content of an extracted AAR folder, see AarTransform

like image 163
shizhen Avatar answered Sep 22 '25 17:09

shizhen