简体   繁体   中英

Cannot Resolve R in Android Studio . Tried all the standard solutions

I cannot Resolve R: Here is what my Code look like which is posted in a screenshot.

Android Studio屏幕截图

The first solution I tried was: Going to Build and Rebuild, that didn't seemed to work.

The second solution was: Tools==>Android==>Sync Project with Gradle Files.

None of those solutions worked. What do you guys suggest?

What do you guys suggest?

Well, the error tells you exactly what the problem is. dog shirt.jpg has an invalid character (a space, it looks like). Rename that file to use lowercase letters ( a through z ), digits ( 0 through 9 ), and underscores for the base name (the part before the .jpg ).

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM