10年 Java程序员,硬核人生!勇往直前,永不退缩!

欢迎围观我的git:https://github.com/R1310328554/spring_security_learn 寻找志同道合的有志于研究技术的朋友,关注本人微信公众号: 觉醒的码农,或Q群 165874185

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Error: 找不到类型,或者它不是编译时常数: Vector。 

 
或者
Type was not found or was not a compile-time constant: Vector.
 
 
搞了好一会,以为是flex版本的问题。 sdk3.2换成了3.5了, 还是一样的。。。
 
 
 

这 是因为编译时,默认支持的Flash Player的版本是9.0.124。遇到这种错误时,需要修改flex-sdk/frameworks/flex-config.xml, 将<target-player>9.0.124</target-player>改为<target- player>10.0.12</target-player>。如果使用flexbuilder,可以通过Project > Properties > Flex Compiler 设置附加编译器参数-target-player=10.0.12。
 
有出现错误 unable to open 'locale/en_US': 解决方法:

可在以项目的Properties里面的Flex Compiler里的Additional compiler arguments里加入-source-path=locale/{locale}

如果还出现:unable to open 'locale/en_US'的问题,就要改一个-source-path=../locale/{locale}

主要是路径的问题。

 

 
 
posted on 2014-04-07 14:38  CanntBelieve  阅读(450)  评论(0编辑  收藏  举报