First of all check your XML is there any error resolve that.
then
1.Build-> Clean Project. 2.Build-> Rebuild Project. 3. After that go to file menu -> Invalidate Caches/Restart. 4. File -> Sync Project with Gradle files.
Resolve the errors then try:
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.