我最近将一个 Eclipse 项目导入 Android Studio 并开始出现此错误:
error: cannot find symbol method getApplication()
我没有从自定义适配器进入 Eclipse:
public class MyAdapter implements SpinnerAdapter{
@Override
public View getView(int position, View convertView, ViewGroup parent) {
TextView v = new TextView(getApplication());
有任何想法吗?