Flash 之ANE的applicationDeployment.nativeLibrary ...

项目介绍:Flash调用Android(采用ANE)

问题:今天在做整合三方支付的时候发现如下问题,

D:\project\flash\Xxxx-lib-d\src\extension.xml(25): error 105: extension.platforms.platform.applicationDeployment.nativeLibrary contains an invalid value

查到

<extension xmlns="http://ns.adobe.com/air/extension/3.1">
  <id>com.aaa.xxxx.d</id>
  <versionNumber>1</versionNumber>
  <platforms>
    <platform name="Android-ARM">
      <applicationDeployment> <nativeLibrary>xxxx_d.jar</nativeLibrary> <initializer>com.aaa.xxxx.d.XxxxExtension</initializer>
        <finalizer>com.aaa.xxxx.d.XxxxExtension</finalizer>
      </applicationDeployment>
    </platform>
  </platforms>
</extension>


问题在下面一行

<nativeLibrary>xxxx_d.jar</nativeLibrary>
由于jar包的名称包含“_”,直接修改包名,去掉下划线

<extension xmlns="http://ns.adobe.com/air/extension/3.1">
  <id>com.aaa.xxxx.d</id>
  <versionNumber>1</versionNumber>
  <platforms>
    <platform name="Android-ARM">
      <applicationDeployment> <nativeLibrary>xxxxd.jar</nativeLibrary> <initializer>com.aaa.xxxx.d.XxxxExtension</initializer>
        <finalizer>com.aaa.xxxx.d.XxxxExtension</finalizer>
      </applicationDeployment>
    </platform>
  </platforms>
</extension>
问题解决,感觉还不够了解flash!!


你可能感兴趣的:(ANE,Flash调用Android)