I have a small github project which i opened in Android Studio from below link.
https://github.com/adakoda/android-screen-monitor
It has no compilation errors , But i see no Run Configuration to run that main method from AndroidScreenMonitor.java. And also i dont find a way to create a jar file from this .java .
I tried to help myself with creating RunConfigurations by following the links below:
Run single java file with standard main(String [] args) method - Android Studio
Running Java application in Android Studio
In Run -> EditConfigurations -> MainClass drop down -> Click 3 dots -> Choose Main Class window ,it doesnt let me select the AndroidScreenMonitor.java file or any file as the main file which means the OK button is never enabled.
Is there a way to fix this issue. So that i can run this project from Android Studio.