Android Error:main cannot be resolved or is not a field
来源:互联网 发布:淘宝一般发货时间 编辑:程序博客网 时间:2024/06/07 10:49
Android Error:main cannot be resolved or is not a field
R.layout.main总是在layout上有错误提示波浪线。
解决方法:
(1) 删除"import android.R;".
(2) 勾选上Eclipse中的"Project->Build Automatically";
原因是:
添加文件,比如xml文件或者资源文件时,系统自动添加了import android.R;android.R是系统提供的资源,R是应用程序的资源。删除"import android.R"之后工程就是从/res文件夹下自动生成的资源文件里去解析了,否则它会从Android的资源类里去找。
- Android Error:main cannot be resolved or is not a field
- Android Error:main cannot be resolved or is not a field 问题解决方法
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field错误
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- Android Error:main cannot be resolved or is not a field,异常语句:setContentView(R.layout.main);
- 7.Error提示: main cannot be resolved or is not a field
- Android Question - “Id cannot be resolved or is not a field” error?
- main cannot be resolved or is not a field (来自 CSDN_ID typename)
- layout cannot be resolved or is not a field
- 数据结构与算法分析(一)
- html 引用 js 乱码
- 关于git的submodule
- ACCESS连接字符串
- Centos/Linux服务器防火墙/iptables简单设置。
- Android Error:main cannot be resolved or is not a field
- PL/SQL Developer技巧
- 笔记本如何设置为热点命令
- U大师U盘装系统——启动自定义ISO/IMG文件(V1.1.0版)
- 开发出编写可重用、可扩展、可维护、灵活性高的代码需要经历遵循以下原则
- unix 方便的加密解密文件
- Linux环境下一些实用的技巧
- 消息耦合还是接口耦合
- 常駐プログラム作成