运行“应用程序"时出错:Android studio 3.1 中出现未知错误 [英] Error running 'app': Unknown error in Android studio 3.1

查看:43
本文介绍了运行“应用程序"时出错:Android studio 3.1 中出现未知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的 android studio 更新到新的稳定版本 3.1.构建项目后无法运行.

I have updated my android studio to new stable version 3.1. After build project not able to run.

如果有人遇到同样的问题或找到任何解决方案,请告诉我.

Let me know if anyone have face same issue or find any solution.

推荐答案

只需转到运行/编辑配置.../"并向下滚动到窗口底部,您就会在此处看到选项启动前..."首先,删除小窗口中已有的任何内容,然后单击 (+) 图标并选择Gradle-aware Make",然后键入assembleDebug" 并选择第一个选项或您需要的选项.这将解决您的问题.

Just go to "Run/edit configurations.../" and scroll down to bottom of the window and here you see an option "Before launch..." First, remove whatever already inside the little window and then click on (+) icon and select "Gradle-aware Make" and then type "assembleDebug" and select the first option or that you need. This will solve your problem.

这篇关于运行“应用程序"时出错:Android studio 3.1 中出现未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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