Android RecyclerView 'Cannot resolve symbol 'textView'' 错误解决方法
根据你提供的布局文件,你需要确保'item_layout'布局文件中有一个id为'textView'的TextView控件。请检查一下'item_layout'布局文件中是否有这个控件,并确保其id为'textView'。
如果确保'item_layout'布局文件中有一个id为'textView'的TextView控件,但仍然报错'Cannot resolve symbol 'textView'',请尝试重新编译项目,或者在Android Studio中点击'File' -> 'Invalidate Caches / Restart'来清除缓存并重新启动Android Studio。
如果问题仍然存在,请提供RecyclerViewAdapter的完整代码,以便我能够更好地帮助你解决问题。
原文地址: https://www.cveoy.top/t/topic/RTS 著作权归作者所有。请勿转载和采集!