android 上的 Nativescript Vue 未更新可绘制文件夹中的图像

Nativescript Vue on android not updating image in drawable folder

我已将图像添加到我的可绘制文件夹中,也就是说,我已将图像 icon.png 从默认图像更改为我的自定义图像。我还添加了 screen.png 图片

但是当我尝试加载图像时: <Image src="res://icon"></Image>

我仍然看到旧的默认 icon.png 图像,当我将图像源更改为 screen 时,我得到 LOG from device Nexus 6P: Missing Image with resourceID: res://screen

我正在使用 tns preview 命令并使用 NS Playground 和 NS Preview 应用程序。

当我尝试使用不同的方法时,将图像添加到 assets/images/ 文件夹,并将其称为 <Image src="~/images/icon.png"></Image> 然后我得到:

LOG from device Nexus 6P: Error in reading bitmap - java.io.FileNotFoundException: /data/data/org.nativescript.preview/files/app/images/icon.png (No such file or directory)

任何人都可以提供一些见解吗?

我将图像添加到 /assets/images 文件夹并将其称为:<Image src="~/assets/images/icon.png"></Image>