简体   繁体   中英

Xamarin (Android) Resource.Designer.cs generated file has errors

I started a project and when I try to build I get 120 errors in the Resource.Designer.cs file.

Error CS0117 'Resource.Color' does not contain a definition for 'design_textinput_error_color'

There are 120 similar errors to this one, 'x does not contain a definition for y' . I tried commenting them out but when I rebuild the file just gets regenerated and the errors return.

Why does it not contain these definitions and how can I get it to create them?

将Numaet Manager中的Xamarin.Forms更新到最新版本可以解决错误。

You could try:

  1. Open up your Android SDK manager and Install the Android 6.0 (API 23).
  2. Update Target SDK to API level 23

Try cleaning your build and deleting the obj and bin folders.

Have you seen this answer ?

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