我在我的程序如下code段:
I have the following code segments in my program:
ArrayAdapter<CharSequence> dataAdapter = ArrayAdapter.createFromResource(
this, R.array.datatypes, android.R.layout.simple_spinner_item);
ArrayAdapter<CharSequence> timeAdapter = ArrayAdapter.createFromResource(
this, R.array.timetypes, android.R.layout.simple_spinner_item);
我得到一个错误的R.array,表示数组不能得到解决,或者不是一个字段。
I am getting an error on "R.array" indicating that array cannot be resolved or is not a field.
这是以前工作的时刻,我不确定我有这个。
This was working moments ago and I am unsure what I have this.
我已经尝试了包括com.throughputconverter.R和清理和重建多次。我也重新启动蚀。
I have tried including "com.throughputconverter.R" and cleaning and rebuilding multiple times. I have also restarted eclipse.
任何帮助将是AP preciated。
Any help would be appreciated.
感谢
Error使用eclipse Android的 - 无资源发现,给定名称匹配
解决我遇到的问题