牧羊岛

懒是不会有好果子吃滴//

导航

测试第一个ane for windows extensions

Posted on 2012-09-29 16:21  牧羊岛  阅读(1228)  评论(3编辑  收藏  举报

 

 

 


打包ANE的时候提示错误:

Could not generate timestamp: handshake alert: unrecognized_name 

解决方法:

命令行参数增加 -tsa none即,"%SDK_PATH%\bin\adt.bat" -package -tsa none -storetype ...


最后打包AIR EXE的时候提示错误:

error 112 the air target doesn't support native extensions

解决方案:

暂无

[原来这个也是因为id重复了,擦]


使用例子自带的package打包提示错误:

error 117: This target requires at least namespace 3.0 to package native extensions.

解决方案:

鬼知道是哪个要3.0啊,搜了一下说要是用AIR3.2的SDK,我原来是一直使用4.5.1的SDK,AIR最低版本2.6,现在使用4.6的SDK,AIR最低版本3.1

[原来是我使用4.6的SDK编译配置文件为2.6的flash,当然不行]

结果又提示错误:

An implementation for native extension 'com.magicalhobo.utils.ImageProcessor' required by the application was not found for the target platform.

解决方案:

原来是-extdir参数有问题,“\”是不行的,要“.\”

 

最后的命令是这样的

set SDK_PATH=D:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0
"%SDK_PATH%\bin\adt.bat" -package -tsa none -storetype pkcs12 -keystore test.p12 -storepass test -target ane ImageProcessor.ane extension.xml -swc ImageProcessor.swc -platform Windows-x86 library.swf FREImageProcessor.dll

 

set SDK_PATH=D:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0
set ANE_PATH=.\
"%SDK_PATH%\bin\adt.bat" -package -XnoAneValidate -storetype pkcs12 -keystore test.p12 -storepass test -tsa none -target native ImageProcessorTest ImageProcessorTest-app.xml ImageProcessorTest.swf -extdir %ANE_PATH%

 

坑爹啊,安装提示“无法安装此应用程序,因为未正确配置此安装程序。请与应用程序作者联系以获得帮助。”

查日志:

  • Windows XP: C:\Documents and Settings\<username>\Local Settings\Application Data\Adobe\AIR\logs\Install.log
  • Windows Vista/ Windows 7: C:\Users\<username>Appdata\Local\Adobe\AIR\logs\Install.log
  • Mac OS X: /private/var/log/system.log
  • Linux: /home/<username>/.appdata/Adobe/AIR/Logs/Install.log

原来是id重复了,换掉就好了。