Xamarin Android Resource file not found

前端 未结 3 797
执笔经年
执笔经年 2021-01-01 19:12

I am building an Android App in Visual Studio. When I try to build the app referencing items in the Resources folder, I get one of two errors.

If I preface \"Resourc

相关标签:
3条回答
  • 2021-01-01 20:01

    The namespace in your code and the namespace in solution explorer should be same.

    0 讨论(0)
  • 2021-01-01 20:09

    This might happen when you add a new file and Visual studio sets it to the wrong build Action. I know this has happened me multiple times and can spend ages trying to figure out what going on. If you right click the file and see the Build action. this should be set to Android Resource. Hope it helps

    Screen shot

    0 讨论(0)
  • 2021-01-01 20:14

    in AndroidManifest.xml make sure that no names depending on other resources which no longer exist for Ex:

    android:label="@string/app_name" so we have to go to our resources/string.xml
    
    <resources>
      <string name="app_id">ssss</string>  
    </resources>
    
    0 讨论(0)
提交回复
热议问题