hussien89aa / AndroidTutorialForBeginners

Step by step to build Android apps using Android Studio
https://www.udemy.com/android-tutorial-for-beginners/?couponCode=ANDORIDGITHUB
4.34k stars 6.1k forks source link

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

Open gaurav5github opened 2 years ago

gaurav5github commented 2 years ago

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.

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

A problem occurred configuring project ':app'.

Could not create task ':app:JavaBasics.main()". SourceSet with name 'main' not found.

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