Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gaurav5github opened this issue Jun 22, 2022 · 0 comments

Comments

@gaurav5github
Copy link

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.

BUILD FAILED in 3s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant