首页 > 其他分享> > Unable to preview the file. Please open a JS, CSS or HML file of the JS UI framework or a layout.xml Unable to preview the file. Please open a JS, CSS or HML file of the JS UI framework or a layout.xml 2021-06-29 00:00:49 作者:互联网 这个问题是打开HarmonyOS graphic 里面的xml文件,比如自己画了一个shape想预览下 什么效果,出现了这个问题, 就是不支持,刚开始想了半天为啥呢,可能android 习惯了,总是想看看效果,弄了半天, 就是目前的HarmonyOS 不让看,想看效果,使用的时候看吧,在布局的xml 加载自己的shape文件 预览效果,使用方法$graphic:xx(shape名称) 标签:xml,graphic,JS,HarmonyOS,shape,file 来源: https://blog.csdn.net/qq_33210042/article/details/118314902