ANT Compile-Time Constant Error: Vector

Just got hit with this error again and its a silly oversight but blogging it may be of some help to someone. If your compiling your Flex application using ANT and you get the following compile-time constant error:

[compc] Error: Type was not found or was not a compile-time constant: Vector.

Then ensure you have specified a SWF version of 10 in your target-player param i.e.

build.properties
swf.version = 10.0.0

build.xml
target-player="${swf.version}"

This entry was posted in ANT, Flex and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Trackback

  1. [...] This post was mentioned on Twitter by HowDo.us, Simon Bailey. Simon Bailey said: Blog to Twitter update – newtriks published a new post: ANT Compile-Time Constant Error: Vector http://cli.gs/QAV1e [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • FreeAgent sign-up


  • Recent Posts

  • Categories