Android 错误:无法解析或不是字段

Android 错误:无法解析或不是字段,android,eclipse,android-launcher,Android,Eclipse,Android Launcher,获取此特定错误:无法解决或不是字段 我尝试清理项目并调试(F11)并构建项目。但同样的问题依然存在 if(来自[i].equals(“me”)){ mView=mLayoutInflater.flate(R.layout.bubble_left,null);//错误 }否则{ mView=mLayoutInflater.flate(R.layout.bubble_right,null);//错误 } ChatMessageMirror=(图像按钮)findViewById(R.id.Ch

获取此特定错误:无法解决或不是字段

我尝试清理项目并调试(
F11
)并构建项目。但同样的问题依然存在

if(来自[i].equals(“me”)){
mView=mLayoutInflater.flate(R.layout.bubble_left,null);//错误
}否则{
mView=mLayoutInflater.flate(R.layout.bubble_right,null);//错误
}
ChatMessageMirror=(图像按钮)findViewById(R.id.ChatMessageMirror)//错误

chatMessageSend=(ImageButton)findViewById(R.id.chatMessageSend)//错误
可能是您导入了
android.R
文件,而不是
您的_package.R
文件。如果您已经这样做了,请替换下面的导入语句

import android.R;


最好在这里发布xml和java代码,不清楚您是否缺少库吗。编辑@dEvElOpIt_Sanskar,我错过了哪个库almas shaikh?例如,在R.layout.bubble_左下方的R下方有红色错误线吗?不是在R下方,而是在bubble_左下方
import your_package.R;