蓝牙Android - 土坯空气
我正在开发一款应用程序,需要通过蓝牙连接到嵌入式系统(Pic18fXXXX) 我使用了ANE库。在这里描述。 http://as3breeze.com/bluetooth-ane/蓝牙Android - 土坯空气
无一不精,数据类型和方法导入为默认,但在编译成Android应用程序时(测试或发布)我得到:
The content cannot be loaded because there was a problem loading an extension: Error: Extension namespace is invalid for C:\Users\Mhood\AppData\Local\Temp\Tmp_ANE_File_Unzipped_Packages\AndroidBluetooth.ane
这看起来像AIR SDK版本不匹配您正在使用和本地库所需的一个。下面是扩展描述为蓝牙ANE扩展内容:
<extension xmlns="http://ns.adobe.com/air/extension/3.4">
<id>com.as3breeze.air.ane</id>
<versionNumber>1</versionNumber>
<platforms>
<platform name="Android-ARM">
<applicationDeployment>
<nativeLibrary>AndroidBluetooth.jar</nativeLibrary>
<initializer>com.as3breeze.air.BluetoothExtension</initializer>
<finalizer>com.as3breeze.air.BluetoothExtension</finalizer>
</applicationDeployment>
</platform>
</platforms>
</extension>
从Adobe的文档:
The namespace is one of the factors, along with the SWF version, that determines compatibility between an AIR SDK and an ANE file. The AIR application must be packaged with a version of the AIR SDK that equals or exceeds the extension namespace. Thus an AIR 3 application can use an extension with the 2.5 namespace, but not the 3.1 namespace.
你使用需要安装Adobe AIR 3.4的版本?检查Adobe文档Native Extension descriptor files了解更多详情。
您可以将您正在使用的AIR SDK版本添加到您的问题(操作系统)吗? –