运行“应用程序"时出错: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.