写了个air程序,让它脱离运行时运行,用命令行启动的时候会用这条命令来启动我们的air程序,adl\adl.exe AirApp-app.xml,AirApp-app.xml是一个配置文件,安装air包后在META-INF\AIR目录下会有application.xml这个文件,另外直接在工程目录的bin-debug会有 AirApp-app.xml这个文件。(AirApp是air程序的名字)。当我直接用命令行启动AirApp-app.xml这个文件后就会报

VerifyError: Error #1014: ClassIIMEClient could not be found.

这个错误,应该是sdk兼容性的问题吧,官方文档

You must update your application descriptor file to the 2.0 namespace in order to access the new AIR 2 APIs and behavior. If your application does not require the new AIR 2 APIs and behavior, you are not required to update the namespace from 1.x based namespace. To update the namespace, change the xmlns attribute in your application descriptor to: http://ns.adobe.com/air/application/2.0

修改的方法就是把xl中的第一行

<application xmlns="http://ns.adobe.com/air/application/1.5.3">

后面的1.5.3改成 2.0 即可

posted on 2012-06-21 16:37  ksqiance  阅读(181)  评论(0编辑  收藏  举报