Status Update
Comments
di...@gmail.com <di...@gmail.com> #2
di...@gmail.com <di...@gmail.com> #3
dependencies {
implementation("androidx.test.ext:junit:1.2.1")
implementation("androidx.test.espresso:espresso-core:3.6.1")
implementation("androidx.test.uiautomator:uiautomator:2.3.0")
implementation("androidx.benchmark:benchmark-macro-junit4:1.3.2")
}
plugins {
id("com.android.test")
id("org.jetbrains.kotlin.android")
id("androidx.baselineprofile")
}
plugins {
id("androidx.baselineprofile") version "1.3.2" apply false
}
di...@gmail.com <di...@gmail.com> #4
I was able to successfully generate the profiles when I used the "Generate Baseline Profile" task instead of "Generate Baseline Profile for app".
di...@gmail.com <di...@gmail.com> #5
I'm seeing this problem with another project and even "Generate Baseline Profile" doesn't work with the same type of error:
Illegal character in path at index 177: [path]/src/baselineprofile/build/outputs/connected_android_test_additional_output/nonMinifiedRelease/connected/Nexus_7_2012_API_34(AVD) - 14/BaselineProfileGenerator_generateStartupProfile-startup-prof-2024-10-09-15-38-33.txt
The only task that works is if I run the baseline profile generator as a unit test, but then I don't actually get any profiles if I do that. The file is uploaded to Google Drive.
Android Studio Ladybug | 2024.2.1 Build #AI-242.21829.142.2421.12409432, built on September 24, 2024 Runtime version: 21.0.3+-79915917-b509.11 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 14.7 GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 4096M Cores: 12 Metal Rendering is ON Registry: ide.experimental.ui=true i18n.locale=
di...@gmail.com <di...@gmail.com> #6
Hmm I realized it might be complaining about the path itself. In this case, it doesn't like the space in the path? ' '
di...@gmail.com <di...@gmail.com> #7
I'm not sure where the ' - 14' is coming from (it's not part of the AVD name itself), but the plugin should be able to handle a path like that.
Description
Will attach file in next comment