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
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
這個(gè)是DevEco 開發(fā)工具提示的。
這個(gè)問(wèn)題是打開HarmonyOS graphic 里面的xml文件,比如自己畫了一個(gè)shape想預(yù)覽下
什么效果,出現(xiàn)了這個(gè)問(wèn)題,
就是不支持,剛開始想了半天為啥呢,可能android 習(xí)慣了,總是想看看效果,弄了半天,
就是目前的HarmonyOS 不讓看,想看效果,使用的時(shí)候看吧,在布局的xml 加載自己的shape文件
預(yù)覽效果,使用方法$graphic:xx(shape名稱)
總結(jié)
以上是生活随笔為你收集整理的Unable to preview the file. Please open a JS, CSS or HML file of the JS UI framework or a layout.xml的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 万宝路冰蓝爆珠一条有几包烟盒
- 下一篇: HarmonyOS 怎样打印log/日志