Skip to content

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

@gaurav5github

Description

@gaurav5github

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions