AndroidTutorialForBeginners icon indicating copy to clipboard operation
AndroidTutorialForBeginners copied to clipboard

Please help in solving this problem showing in the terminal window of Android studio.

Open gaurav5github opened this issue 3 years ago • 0 comments

Executing tasks: [:app:JavaBasics.main()] in project C:\Users\PC\AndroidStudioProjects\HelloAndroid\ app

Configure project :app

The JavaExec.main property has been deprecated. This is scheduled to be removed in Gradle 8.0.

Please use the mainClass property instead. See https://docs.gradle.org/7.3.3/dsl/org.gradle.api tasks.JavaExec.html#org.gradle.api.tasks. JavaExec:main for more details. at JavaBasics_main___bifh9cjzt8vxkptppv3mbuljd$_run_closure1$_closure2$_closure3.docall

(C\Users\PC\AppData\Local\Temp\JavaBasics_main__.gradle:23) (Run with -- stacktrace to get the full stack trace of this deprecation warning.)

FAILURE: Build failed with an exception.

  • Where:

Initialization script 'C:\Users\PC\AppData\Local\Temp\JavaBasics_main___.gradle' line: 41

  • What went wrong:

A problem occurred configuring project ':app'.

Could not create task ':app:JavaBasics.main()". > SourceSet with name 'main' 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

BUILD FAILED in 3s

gaurav5github avatar Jun 22 '22 11:06 gaurav5github