可能重复:
Android Hello, Gallery tutorial — “R.styleable cannot be resolved”
喜。我在android开发者网站上的helloGallery教程出错...我的错误出现在ImageAdapter类中,特别是public ImageAdapter
..
public ImageAdapter(Context c) {
mContext = c;
TypedArray a = c.obtainStyledAttributes(R.styleable.Gallery1);
mGalleryItemBackground = a.getResourceId(R.styleable.Gallery1_android_galleryItemBackground, 0);
a.recycle();
}
,错误为R.styleable cannot be resolved
请帮忙吗?谢谢
答案 0 :(得分:2)