Fixed
Status Update
Comments
cc...@google.com <cc...@google.com> #2
The workaround I found so far is to use project.afterEvaluate {} to access the build types, as they are created only after Baseline Profile Gradle Plugin creates them:
Kotlin
android {
buildTypes {
release { ... }
project.afterEvaluate {
getByName("benchmarkRelease") { }
getByName("nonMinifiedRelease") { }
}
}
}
Groovy
android {
buildTypes {
release { ... }
project.afterEvaluate {
benchmarkRelease { }
nonMinifiedRelease { }
}
}
}
This way there are no redundant build variants created.
ma...@google.com <ma...@google.com>
cc...@google.com <cc...@google.com> #3
Attaching a sample project for convenience.
ma...@google.com <ma...@google.com>
cc...@google.com <cc...@google.com>
ap...@google.com <ap...@google.com> #4
This should be a bug on the AS side.
ap...@google.com <ap...@google.com> #5
I would say AS isn't the problem. Even without the AS in the project that I attached the simple commands:
./gradlew assembleBenchmarkBenchmarkRelease
./gradlew assembleNonMinifiedNonMinifiedRelease
./gradlew assembleNonMinifiedBenchmarkRelease
are executed successfully and produce some apks.
cc...@google.com <cc...@google.com>
na...@google.com <na...@google.com> #6
This is how the baseline profile works - it creates specific build types to correctly generate baseline profiles and benchmarks.
You can still disable the variants if you're not interested in one of them. But AS should not be showing them (by default, configurable through a flag).
Description
Since fixes are slow to roll out, we should have benchmark clearly tell people they're using unsupported emulators if they run into the following bugs:
For the tracing issue, if perfetto capture start fails, do something like:
And add something similar for the compilation failure.