In Progress
Status Update
Comments
mm...@google.com <mm...@google.com>
em...@google.com <em...@google.com>
jo...@google.com <jo...@google.com>
ar...@google.com <ar...@google.com> #2
I tried adding screenshotTestImplementation(libs.androidx.window)
but it didn't fix it.
Description
* In a project with some (even trivial) native code
* Using latest Android Studio (2024.2.1 Patch 3), Gradle plugin (8.7.3) and emulator image (15, latest update)
* Running an instrumentation test for a single method that uses the native code under the debugger (selecting 'Debug <methodname>' from the context menu)
* Using the default run configuration that sets debugger to "Detect automatically", or selecting Dual
* The test method and class are shown as passed but test results are shown as cancelled. Gradle thinks the task fails.
* This hurts my productivity as it's hard to be sure the tests are actually passing without reading the output very carefully.
If I 'Debug' the whole class instead of a single method, the last method is shown as cancelled as well as the class.
If I change the debugger to Java only, or use Run instead of Debug the problem doesn't occur.
This happens with or without breakpoints set or hit.
2. Attach log files from Android Studio - Done
3. If you know what they are, write the steps to reproduce:
* Start Android Studio
* Create new "Native C++" project
* Update compileSdk if prompted
* Open the created instrumentation test
* Select 'Debug useAppContext' in the method context menu
* Observe X for the test results and "Could not receive test results from the test executor." in the test result output
In addition to logs, please attach a screenshot or recording that illustrates the problem. - Done
I've also attached the lldb logs.
For more information on how to get your bug routed quickly, see
Build: AI-242.23339.11.2421.12700392, 202411221916
AS: Ladybug | 2024.2.1 Patch 3
AI-242.23339.11.2421.12700392, JRE 21.0.3+-79915917-b509.11x64 JetBrains s.r.o., OS Mac OS X(aarch64) v15.1.1, screens 3456x2234 (200%); Retina
Android Gradle Plugin: 8.7.1
Gradle: 8.11.1
Gradle JDK: JetBrains Runtime 21.0.3 - aarch64
NDK: from module: 27.0.12077973, from local.properties: (not specified), latest from SDK: 27.0.12077973
CMake: from local.properties: (not specified), latest from SDK: 3.31.0-g356e6de, from PATH: 3.30.4
```