Assigned
Status Update
Comments
ze...@google.com <ze...@google.com>
vi...@meesho.com <vi...@meesho.com> #2
I m facing this issue in release build , any updates here?
ly...@gmail.com <ly...@gmail.com> #3
Here is another sample project that reproduces the issue. The only changes has been made over default sample project configuration:
- added
app/src/main/baselineProfiles/startup-profile.txt
- disabled
debuggable
indebug
build type:
...
android {
buildTypes {
debug {
isDebuggable = false
}
}
}
...
Adding this will help to avoid the issue:
...
android {
experimentalProperties["android.experimental.r8.dex-startup-optimization"] = false
}
...
Also, it probably causes OOM's in our builds, and disabling dex optimizations also helps with it.
Description
With the generated
startup-prof.txt
insrc/sourceSet/baselineProfiles/
, when compiling the debug build themergeExtDex<Variant>
task seems to still process the file and produce lot of warnings:STEPS TO REPRODUCE:
./gradlew assembleDevDebug
Studio Build: Android Studio Koala 2024.1.1 Canary 3
Version of Gradle Plugin: 8.5.0-alpha03
Version of Gradle: 8.7
Version of androidx.baselineprofile: 1.3.0-alpha02
Version of Java: 21
OS: macOS