Whenever I create a new activity there is an error with name like for eg. setContentView(R.layout.activity_display_image);
and i am getting this
invalidate cache from file section of android studio, clean and build app. this will solve your problem
Follow these three steps:
Android Studio > Build > Clean Project
Android Studio > Build > Rebuild Project
Android Studio > File > Invalidate Caches/Restart > Invalidate and Restart
If still you face this problem then do Sync Project with Gradle File
by pressing the following button. Hope this will work now.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.