Error: No resource found that matches the given name (at 'icon' with value '@mipmap/Icon')

后端 未结 2 2033
谎友^
谎友^ 2021-01-18 02:31

This is my first attempt at Xamarin, just running through the examples at Xamarin.com.

But I\'m getting this error when I try to build. It\'s strange because I can s

相关标签:
2条回答
  • 2021-01-18 02:48

    The solution:

    1. Change all "Icon.png" names into mipmap folders to "icon.png".
    2. Clean project
    3. Re-open Visual Studio
    4. Select "@mipmap/icon" in "Application Icon" in AndroidManifest.
    0 讨论(0)
  • 2021-01-18 02:52

    Here's a workaround. Go into assemblyinfo.cs (it's in the Properties folder in your project) and add the following line in there:

    [assembly: Application(Icon = "@mipmap/icon")]

    0 讨论(0)
提交回复
热议问题