Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running MyProjectName []: No task to execute is specified

enter image description hereI have installed new android studio and Imported my existing android project. whenever I run the app I get "Error running MyProjectName []: No task to execute is specified"

7:23 PM Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]

7:24 PM Gradle build finished in 38s 639ms

7:26 PM Error running MyProjectName []: No task to execute is specified

I have tried to resolve the error with no luck can anyone help?

like image 835
Navigator Avatar asked Mar 07 '23 07:03

Navigator


1 Answers

I tried the solution the error went away but no apk generate.

Solution I found

GO run -> run -> then choose app, not your project name as image show below.

enter image description here

like image 196
Navigator Avatar answered Mar 09 '23 21:03

Navigator