I’ve deleted my program again to restart it but I found a discussion similar to my problem in this forum.
Basically it explains that the appcompat -v7:26.1.0 has to have the matching version recyclerview. I haven’t made it back to the point of where my error occurred to know if it will work but many people within that discussion said it worked for them.