加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Unable to resolve resource bundle “CairngormMessages” for

发布时间:2020-12-15 01:40:21 所属栏目:百科 来源:网络整理
导读:Unable to resolve resource bundle “CairngormMessages” for locale “en_US” 我得到这个错误,我每次开始一个新的与Cairngorm的Flex项目。 I get this error every time I start a new flex project with cairngorm. 因为我不希望谷歌这样继续下去了,

Unable to resolve resource bundle “CairngormMessages” for locale “en_US”

我得到这个错误,我每次开始一个新的与Cairngorm的Flex项目。 I get this error every time I start a new flex project with cairngorm. 因为我不希望谷歌这样继续下去了,我写下来的解决方案。 Because I don't want to google this anymore,I write the solution down. 只需添加下面的编译器参数,它应该工作。 Just add the following compiler argument and it should work.

 -资金来源-路径+ =语系/ {区域} - source - path + =locale / { locale }  
使用cairngorm框架时,如果设置local为-locale=en_US。则报这个错误。找了好久才解决。记录如下:
    
    

在flex工程目录下新建一个locale目录。local和src是一个级别的。在locale目录在建立en_US,cn_ZH 两个目录。在这2个目录下需要放置一个空内容的文件CairngormMessages.properties。

然后在flex builder中设置附加的编译参数如下:

注意先后顺序。

-source-path=../locale/cn_ZH -locale=en_US

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读