AndroidStudio中Run按钮是灰色的解决方法

在model下拉框中选择app.如果下拉框中没有app,(没有工程名),那么请先去设置:

Android Studio 3.3.0 File->sync project with gradles files;(老版本的AS可能是tools ->Android->sync project with gradles files;)
更新好后。回到这一步,model中选择app,就好。

有时,运行还可能出现报错—— Could not identify launch activity: Default Activity not found

 

这时,在上个页面中

launch option 中设置好指定的activity就好。

暂时,出现的问题就是这些。解决了。

posted @ 2019-09-08 19:45  lianghe  阅读(4182)  评论(0编辑  收藏  举报