问题描述
我将IntelliJ Idea从12.0.4升级到了12.10.
I upgraded IntelliJ Idea from 12.0.4 to 12.10.
现在我的Android项目中的所有模块都给出错误:
Now all the modules in my Android project give the error:
错误:找不到默认活动
我又恢复到12.0.4,一切又恢复正常了.
I reverted back to 12.0.4 and it everything works again.
有什么想法吗?我认为这可能是缺少插件的问题.由于未安装该插件,因此无法找到默认活动.另一件事可能是本地配置,但我对此表示怀疑.我删除了配置文件夹以进行验证,但没有做任何更改.
Any ideas? I think it might be an issue with a missing plugin. Since the plugin is not installed, it is not able to find the default activity. Another thing could have been a local config, but I doubt it. I deleted the configuration folder to verify and that didn't change anything.
推荐答案
执行此操作的正确方法是将以下内容添加到清单文件中:
The correct way to do this is to add the following to the Manifest file:
<activity
android:name="FULL_NAME_OF_YOUR_ACTIVITY"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
这应该插入之间:
<application> </application>
无需使缓存无效.
这篇关于“未找到默认活动"在Android Studio升级上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!