I am just beginning to develop for Android. The tutorial book I am using uses the code below, but, put simply, it does not work. As I've searched for an answer, I find that none of the solutions people say have rid them of this error have worked for me. Here is a list of methods that did not work.
-Cleaning: It just said it couldn't clean until I resolved the error.
-Building the Project: It built it, but the error did not go away.
-Deleting import R: The error did not go away.
-Renaming import R to import me.package.R: The error persisted.
Here is the code that is generating the error.
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
Can anyone help me out?
您的项目可能需要引用一些库jar,由于某些编译问题,由于未正确生成项目的R.java。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.