title: Android Studio refuses to run main()
body: <p>Repro steps:</p>
  
  <ol>
  <li>Start a new project in Android Studio (with the latest update);</li>
  <li>Make a new class and add main() as usual;</li>
  <li>Right-click class to run main() as a test.</li>
  </ol>
  
  <pre class="lang-java prettyprint-override"><code>package test;
  
  public class Test {
      public static void main(String[] args) {
      }
  }
  </code></pre>
  
  <p>Usually I expect I can just <code>System.out.printLn("Hello World")</code> but this time, no matter if it's a new project, I get the following error:</p>
  
  <pre><code>2:34:23 PM: Executing task 'Test.main()'...
  
  Executing tasks: [Test.main()] in project C:\Users\regan\Desktop\events\MyApplication
  
  
  FAILURE: Build failed with an exception.
  
  * Where:
  Initialization script 'C:\Users\regan\AppData\Local\Temp\Test_main__2.gradle' line: 20
  
  * What went wrong:
  A problem occurred configuring project ':app'.
  &gt; Could not create task ':app:Test.main()'.
     &gt; SourceSet with name 'test' not found.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
  
  BUILD FAILED in 0s
  2:34:24 PM: Task execution finished 'Test.main()'.
  </code></pre>
  
  <p>I am <em>fairly</em> new to Java after years of C# in Unity and have no idea what all this stuff is trying to tell me. I have googled but the closest I found was a way to HIDE this error (assuming code was still compiling). I need this code to at least compile.</p>