How to Solve Android Studio run main() Method Error

Solution:

1. Execute run * * main() with coverage;

2. Modify gradle.xml under. Idea

< GradleProjectSettings> Add a row under the label node

< option name=”delegatedBuild” value=”false” />

After saving, you can use run * * with   Main() and debug * * with main()

Read More: