Apache flex 找不到已编译的资源包';消息传递';对于区域设置';美国';。从4.0迁移到4.6时

Apache flex 找不到已编译的资源包';消息传递';对于区域设置';美国';。从4.0迁移到4.6时,apache-flex,resourcebundle,Apache Flex,Resourcebundle,将flex SDK从4.0迁移到4.6时。我在运行时遇到了这样的错误 Error: Could not find compiled resource bundle 'messaging' for locale 'en_US'. at mx.resources::ResourceManagerImpl/installCompiledResourceBundle() at mx.resources::ResourceManagerImpl/installCompiledResourceBund

将flex SDK从4.0迁移到4.6时。我在运行时遇到了这样的错误

 Error: Could not find compiled resource bundle 'messaging' for locale 'en_US'.
 at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()
 at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
 at mx.core::FlexModuleFactory/installCompiledResourceBundles()
 at mx.core::FlexModuleFactory/docFrameHandler()
 at mx.core::FlexModuleFactory/docFrameListener()
资源包“mesaging”包含在rpc中,“rpc”已在打开我的应用程序时加载到“缓存”中。我在网上找到了一些解决办法,但没有一个奏效。我试过:

1.add [ ResourceBundle( "messaging" )]
2.decalare a usage to class that maybe use the 'mesaging', such as
 import mx.messaging.channels.HTTPChannel;
 private var httpChannel:HTTPChannel;</pre>
3.In pom
    <includeResourceBundles>
    <bundle>messaging</bundle>
    </includeResourceBundles>
1.add[ResourceBundle(“消息传递”)]
2.贴花是可能使用“台面”的类的用法,例如
导入mx.messaging.channels.HTTPChannel;
私有var httpChannel:httpChannel;
3.在pom中
消息传递

有人对这个问题有别的解决办法吗?谢谢

我设置了compile选项-keep generated actionscript=true,并获得了一个文件夹“generated”,在其中我找到了Flex SDK中生成的消息类“messaging_properties.as”和其他资源包类。但在我的主应用程序中,当我试图通过ApplicationDomain.currentDomain.hasDefinition(“messaging_属性”)获取类定义时,返回值为false。真的很奇怪。通过这种方式,我可以得到其他rb类,比如“components\u properties”,我已经找到了原因。在flash builder->property->Flex Build Path中,取消选中“删除未使用的RSL”选项。它起作用了。似乎flex编译器在我的应用程序中移动了“rpc”。不幸的是,我使用flexmojos maven插件3.8,它没有这个参数。所以我必须升级到4.0-RC2