我在我的项目中使用FreshPlanet KeyboardSize in。我已经成功地添加到我的项目中,但是当我运行
MeasureKeyboard.getInstance().setKeyboardAdjustNothing();
我得到以下错误。
ArgumentError: Error #3500: The extension context does not have a method with the name setKeyboardAdjustNothing. at flash.external::ExtensionContext/_call() at flash.external::ExtensionContext/call() at com.freshplanet.ane.KeyboardSize::MeasureKeyboard/setKeyboardAdjustNothing()e
我该如何解决这个问题呢?
谢谢。
发布于 2014-10-06 20:09:50
确保src和bin-debug文件夹中的Application-app.xml都包含与ANE源代码中的ExtensionContext.createExtensionContext(NAME_OF_THE_EXTENSION_ID,调用完全匹配的NAME_OF_THE_EXTENSION_ID标记。如果它们不匹配,您将无法在初始化中设置外部上下文。这也应该与类声明之前的RemoteClass描述符中的别名相匹配。我希望这是有用的信息。
发布于 2015-07-22 17:10:17
在我的例子中,发生的情况是缺少运行c++代码所需的MSVCR (Microsoft visual c++重分发)。
由于扩展中的代码无法运行,应用程序无法找到ANE中包含的任何函数。
确保您的ANE的代码能够通过编写日志或独立运行一些示例本机代码来运行。
https://stackoverflow.com/questions/24159298
复制相似问题