android开发实战经典
============问题描述============
============解决方案1============
============解决方案2============
1、我clean过好几次了,依然不能编译。因为gen目录为空的。 3、代码不会有错的,因为我是新建了一个空的项目,默认的代码: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);//R cannot be resolved to a variable } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu);//R cannot be resolved to a variable return true; } } 那看来只有可能是2、ADT插件没有安装全。那请问,怎么样才知道有没有把ADT插件安装全呢?
posted on 2014-11-08 12:34 杨本康 阅读(263) 评论(0) 收藏 举报