Android Studio development RecyclerView Problems and Solutions (2), studiorecyclerview
When developing RecyclerView, You need to import other people's examples. I imported them from github. Download The github compressed package and decompress it to check whether the file you want to import is priject or Module. (most of the app folders are projects)
After the import, the program may not run quickly. You need to change the configuration file to be supported by your own AndroidStudio version (you can open a successful project, find the file, and copy it, paste it to the place where the imported project system is to be changed .)
If an error occurs:
It must be the following two errors:
Correct: Right-click the project and select "Open Module Settings". Based on the prompts, determine which one has been added with an error. Remove the incorrect one and add the correct one.
If the following error is reported:
Change the selected part to your project.
The Marked changes need to be changed, and then the project is cleaned up. So far, no errors have occurred after these changes. It is purely my own summary and accumulation. If there are any errors, I hope you can point them out, I also hope to help you.