Android: No resource found that matches the given name (at background with value '@drawable/ xxxX')

ERROR: 
No resource found that matches the given name (at background with value '@drawable/XxxXxx')

FIX:

Use all lower case when you specify the image file name in the Values / styles.xml. It doesn't matter if you have camel letters in the filename under the Resource Folder.

Example:

 Instead of this,
<item name="android:windowBackground">@drawable/Splash</item>

Use,
<item name="android:windowBackground">@drawable/splash</item>

Comments

  1. 1. delete all files and folders from your c:\users\\appdata\local\xamarin\
    2. Restart VS - very important
    3. Clean Solution
    4. Build / Rebuild solution

    **If the above ends up with some other resource errors , close and reopen VS and repeat steps 2,3,4.**

    ReplyDelete

Post a Comment