运行“应用”时出错:Android Studio 3.1中发生未知错误 [英] Error running 'app': Unknown error in Android studio 3.1

查看:179
本文介绍了运行“应用”时出错: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天全站免登陆