android studio 菜单中的app运行按钮上有个叉号,原因与解决办法
来源:互联网 发布:国企程序员 编辑:程序博客网 时间:2024/05/22 13:19
在android studio写代码中,直接建立项目,写代码然后运行是不会一般是不会出现这样的问题的,但是一旦更改主Activity,而不跟着手动更改AndroidManifest.xml中的activity配置,则会出现这样的情况,这就是提醒我们没有了主Activity。手动将主Activity的子节点<intent-filter>、<action>和<category>加入进去即可。
错误视图:
添加代码:
<activity android:name=".DictResolverTest"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
然后就可以看到菜单栏中显示正常了:
0 0
- android studio 菜单中的app运行按钮上有个叉号,原因与解决办法
- android studio 菜单中的app运行按钮上有个叉号,原因与解决办法
- Android Studio上的APP运行按钮有个叉的解决办法
- Android studio导入项目运行按钮点不了的解决办法
- Android Studio 报错原因以及解决办法
- Android Studio运行程序出现Session ‘app’: Error Launching activity 解决办法
- Android Studio运行程序出现Session ‘app’: Error Launching activity 解决办法
- Android Studio运行程序出现Session ‘app’: Error Launching activity 解决办法
- Android Studio点击运行按钮找不到虚拟机
- Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- (转)Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- Android App 启动页(Splash)黑/白闪屏现象产生原因与解决办法
- STM32 GPIO工作方式
- 基本分页存储管理方式
- 线程汇总(2)
- 最小生成树之Kruskal和Prim算法——C++实现
- js获取元素具体样式属性值
- android studio 菜单中的app运行按钮上有个叉号,原因与解决办法
- 大数据关键技术
- 【leetCode】 Balanced Binary Tree python版实现
- UI控件之显示文本控件TextView(上)
- 保持你的应用程序响应
- ios 开发file's owner以及outlet与连线的理解
- 虚拟机中的Linux系统安装JDK
- Web移动端Fixed布局的解决方案
- ubuntu添加开机自启动程序