Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
The "Gradle-Aware Make" pre-launch step is initially present in a Android JUnit run config, but disappears after re-opening the project or IDE.
Studio Build:
Version of Gradle Plugin: Both 3.1.0-alpha08 and 3.0.1
Version of Gradle: Both 4.4 and 4.1
Version of Java: /Applications/Android Studio 3.1 Preview.app/Contents/jre/jdk/Contents/Home
OS: macOS 10.13.1 (17B1003)
Kotlin version: 1.2.20
Android Studio 3.1 Canary 8
Build #AI-173.4529993, built on January 6, 2018
JRE: 1.8.0_152-release-1024-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.1
Steps to reproduce:
1. Create a new Android project using the default settings (File -> New -> New Project), and allow Gradle sync to complete
2. Create a new Android JUnit run config for the ExampleUnitTest test class:
2a. Run -> Edit Configurations
2b. Click the "+" button in top-left of the window
2c. Choose "Android JUnit"
2d. Use classpath of module "app"
2e. Class "<yourpackage>.ExampleUnitTest"
3. Run the newly-created run config
4. Quit the IDE
5. Re-launch the IDE, allow Gradle sync to complete
6. Clean the project (Build -> Clean Project)
7. Run the ExampleUnitTest run config again
Expected outcome:
The project builds with Gradle prior to running the test, then the test passes. Inspecting the "Before launch" pane of the run config should reveal the "Gradle-Aware Make" step.
Actual outcome:
The project does not run Gradle, and the test fails with no classes/tests. The "Before launch" pane of the run config DOES NOT include the "Gradle-Aware Make" step.
The error in the console is as follows:
Process finished with exit code 1
Class not found: "com.nextfaze.myapplication.ExampleUnitTest"Empty test suite.