运行MyProjectName []时出错:未指定要执行的任务 [英] Error running MyProjectName []: No task to execute is specified

查看:119
本文介绍了运行MyProjectName []时出错:未指定要执行的任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了新的android studio并导入了现有的android项目.每当我运行应用程序时,我都会收到运行MyProjectName []时出错:未指定要执行的任务"

I 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执行任务:[干净,:app:generateDebugSources,:app:generateDebugAndroidTestSources,:app:mockableAndroidJar]

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

7:24 PM Gradle构建在38s 639ms中完成

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

7:26 PM运行MyProjectName []时出错:未指定要执行的任务

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?

推荐答案

我尝试了解决方法,该错误消失了,但没有生成APK.

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

我找到的解决方法

转到运行->运行->然后选择应用,而不是您的项目名称,如下图所示.

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

这篇关于运行MyProjectName []时出错:未指定要执行的任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆