activity_main cannot be resolved or is not a field
来源:互联网 发布:mac 无法连接网络 编辑:程序博客网 时间:2024/05/21 04:41
刚遇到这个纠结的问题,代码都没错,R.layout.main总是在layout上游错误提示波浪线。在网上查了好多都是说clean一下工程然后build工程就可以了,或者fix project properties 但是还是解决不了...
原因可能是添加文件,比如xml文件或者资源文件时,系统自动添加了import android.R;android.R是系统提供的资源,R是应用程序的资源。
这时候只要删除 import android.R;这条语句就可以了。
参考链接:http://blog.sina.com.cn/s/blog_3e28c8a50101fuul.html
0 0
- Type activity_main cannot be resolved or is not a field
- activity_main cannot be resolved or is not a field
- activity_main cannot be resolved or is not a field
- activity_main cannot be resolved or is not a field
- activity_main cannot be resolved or is not a field
- activity_main cannot be resolved or is not a field
- 1.创建空白工程时候出现“activity_main cannot be resolved or is not a field”错误
- Android错误之--activity_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
- layout 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
- (Layout) cannot be resolved or is not a field 错误
- main cannot be resolved or is not a field
- button1 cannot be resolved or is not a field
- "cannot be resolved or is not a field"问题解决
- 图像处理 图像切割
- onAttachedToWindow()在整个Activity生命周期的位置及使用 .
- jquery 评分插件 juqer raty
- error C3861: “setw”: 找不到标识符
- iOS 9 学习系列:UIStack View
- activity_main cannot be resolved or is not a field
- 防泄密软件的安全性
- scrollView中的onclick事件和滑动事件冲突
- Add Two Numbers
- Redis在win7上的可视化应用
- Add Digits
- 【笔记】《Putting Users in Control of their Recommendations》
- OpenStack相关的邮件列表和IRC
- 使用Qt开发中国象棋(三):走棋着法列表