[Solved] AS Run main() Error: Could not create task ‘:app:CreateOperatorDemo.main()‘

Error prompt:

terms of settlement:

Project mode – & gt Idea folder – & gt; Gradle.xml, in  & lt; GradleProjectSettings> Node, add this line of code:

If the above code is added or an error is reported, build – > After clean project is recompiled, the problem can be solved.

Read More: