在 android studio 中,图像即使在导入后也未显示在“显示”部分中

In android studio the image not showing in the Display section even after importing

我正在尝试显示图片,以便使用图像视图。在图像视图 xml 部分我写了这段代码:

(破折号)图像名称。因此,请将您的图像名称从 "dollar-png-dollar-png-transparent-image-1314" 重命名为 "dollar_png_dollar_png_transparent_image_1314",它将起作用。在这里,我附上了一张屏幕截图,您可以在其中看到红色警报中的命名约定,以便在 android studio 中创建图像名称。