默认的活动没有找到(安卓工作室0.6.1) [英] Default Activity not found (Android Studio 0.6.1)

查看:148
本文介绍了默认的活动没有找到(安卓工作室0.6.1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装的Andr​​oid工作室的 0.6.1 的和进口的,从Eclipse的一个项目。当我试图运行项目,我得到了错误:默认的活动没有找到

I just installed Android Studio 0.6.1 and imported a project from Eclipse. When I tried to run the project, I got Error: Default Activity not found.

我看着这两个StackOverflow的问题:

I looked at these two StackOverflow questions:

<一个href="http://stackoverflow.com/questions/18828654/default-activity-not-found-in-android-studio">Default活动不是在Android的工作室发现

作为建议,我想的无效缓存+重新启动确保我的 AndroidManifest 是正确的的。两人都没有工作。

As suggested, I tried to invalidate the caches + restart and make sure my AndroidManifest was correct. Both didn't work.

我也试过这个解决方案,但都无济于事:

I also tried this solution, but to no avail:

试着右击该项目并选择打开模块设置。然后进入来源标签在你的模块,找到的src 文件夹,右键点击它,将其标记为来源(蓝色)。

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

当我打开该模块的设置,没有源标签。

When I opened the module settings, there was no sources tab.

我怎样才能解决这个问题呢?
有没有在机器人工作室的 0.6.1 的?

How can I fix this problem?
Is there there any equivalent of the sources tab in Android Studio 0.6.1?

编辑:

这里的发射活动。

<activity
    android:name="com.lschlessinger.appname.activities.SplashScreenActivity"
    android:noHistory="true" >
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

我也试过的清洗我的项目重建我的项目重新启动Android的工作室的,所有这一切,并没有解决问题。

I also tried cleaning my project, rebuilding my project, and restarting Android Studio, all of which, did not resolve the problem.

作为一个临时的解决方案,我手动选择在运行配置的发射活动。

As a temporary solution, I'm manually selecting the launcher activity in the run configuration.

推荐答案

切换到Android工作室0.8 +

这解决了该问题。

这篇关于默认的活动没有找到(安卓工作室0.6.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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