As抽风:Could not identify launch activity: Default Activity not found Error while Launching activity

本人也是用As差不多不到时间,现在用的是2.0正式版本! 今天 我就是抽取了一个抽象方法,抽风的as 就报 Could not identify launch activity: Default Activity not found Error while Launching activity 这个,下宝宝一跳,各种撤回都不行,这可咋办,项目还要做不是,于是开启了 stackoverflow ,坑爹的网络不给力! 最后解决的方法找到了:


 帖子上 选中的方法是:




down vote accepted

In Android Studio, right click on the project and choose Open Module Settings. Then go to theSources tab in your module, find the src folder, right click on it and mark it as Sources (blue color).

EDIT: There is no sources tab in later versions of Android Studio, but you can edit the build.gradlefile instead: http://stackoverflow.com/a/22028681/1101730 (thanks for comment Josh)


但是坑爹的我没找到相对应的 选项,那不行啊,还得继续啊!在上面的 回答下面还有个 回答如下:




I had the same problem while importing a project into Android Studio, probably caused by the fact that the project has been developed on an earlier version of Android Studio than currently installed on my computer.

What solved it was simply executing:

File -> Invalidate Caches / Restart...

and then clicking on Invalidate and Restart.


上面的那个方法是 清理缓存,返回到上次正常状态!


File -> Invalidate Caches / Restart...

and then clicking on Invalidate and Restart. 等待1到2分钟,ok了。




27 down vote accepted

In Android Studio, right click on the project and choose Open Module Settings. Then go to theSources tab in your module, find the src folder, right click on it and mark it as Sources (blue color).

EDIT: There is no sources tab in later versions of Android Studio, but you can edit the build.gradlefile instead: http://stackoverflow.com/a/22028681/1101730 (thanks for comment Josh)

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值