我无法使用我从计算机上传到项目的主要 activity.cs 中的图片

i cant use pictures in main activity.cs that i upload to the project from my computer

我尝试将许多图片上传为 .png 或 .jpg 并更改每张图片的名称但无济于事 它说没有找到问题但是当我 运行 程序时它说它是一个二进制文件而不是文本文件

输出错误是 Severity Code Description Project File Line Suppression State 错误 CS2015 'E:\my programms\repos3\My first app\My first app\imageresourse1\red.png' 是二进制文件而不是文本文件 我的第一个应用 E:\my programms\repos3\My first app\My first app\CSC 1 Active enter image description here

来自document,错误的意思是:

'file' is a binary file instead of a text file

A file was passed to the compiler that was a binary file. The compiler expects a source code file.

错误是由red.png而不是mypick.jpg引起的。

请检查 red.png 是否是有效的 png 图像,我认为解决方案是 从可绘制文件夹中删除 red.png

red.png看起来和其他图片不一样,因为那里有一个透明的小三角形: