Issue I am facing:
- Created new Java Class called "Hello"
- Attempted to run main method:
public class Hello {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
3: Error I received:
FAILURE: Build failed with an exception.
Where: Initialization script 'C:\Users\User25\AppData\Local\Temp\Hellos_main__.gradle' line: 21
What went wrong: A problem occurred configuring project ':app'.
Could not create task ':app:Hellos.main()'. SourceSet with name 'main' not found.
Things I tried: Ran the "Hello" class with coverage and works just fine. However, I have no idea why I can't simply run the code. I have probably spent a good 2 to 3 hours searching online on how to resolve this issue but couldn't find a solution. Someone had the same problem on the Android Studios forum but nobody got back with a solution. Would appreciate your help. Thanks in advance.
