I am making an Android app. Due to some reasons, my current project files got all messed up. To solve this issue I created a new project in Android Studio and copied the files from the previous project to this new project.
I carefully copied all the layout, values, java files at their right location. I replaced the relavant content from the new manifest and gradle files with new content.
Everything looked perfect and then I got the "Cannot resolve symbol R" error.
I tried all the solutions like Invalidate Cache/Restart, Sync files with gradle, Rebuild Project, Clean Project etc. etc. etc.
Still couldn't fix it.
Can someone help?
Edit
Problem Details 1. I have correct package name everywhere (in AndroidManifest too) 2. I have proper and valid xml files 3. Even if I copied the files from other project the I've kept the project name and package names exactly the same. 4. I have only one app module.