Skip to content

Slower builds with transform-api and AGP 8 #7802

@Gimbergsson

Description

@Gimbergsson

How frequently does the bug occur?

Always

Description

Hi, I'm working on a project where we use Realm and now when we shifting to AGP 8 and using the transformer-api version of realm I've noticed and measured that builds is taking a lot longer to finish. For clean builds it takes about 40s-1m more and the same with incremental builds (just commenting out some code).

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

I've measured it like this.

  1. Run gradlew clean && gradlew --profile --offline --rerun-tasks :app:assembleDevDebug which took 5m 28s with 10.14.0-transformer-api and 4m 47s with 10.12.0
  2. Comment some code and run gradlew --profile --offline :app:assembleDevDebug which took 1m 57s with 10.14.0-transformer-api version and 52s with 10.12.0

Version

10.14.0-transformer-api

What Atlas App Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Windows 10

Build environment

Android Studio version: Flamingo | 2022.2.1
Android Build Tools version: 34.0.0-rc3
Gradle version: 8 and 7.4.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions