How to add third-party jar files into my android application jar file?

后端 未结 3 759
失恋的感觉
失恋的感觉 2020-12-20 07:44

I have an Adobe AIR application for Android. Using for this AIR 3.0 and Flash Builder 4.6. I need to make MyANEFile.ane - which must include 2 external .jar files: Flurry.ja

3条回答
  •  自闭症患者
    2020-12-20 08:15

    Suppose your main extension jar file is extension.jar and you are using code in external.jar. Then you can put the classes from external.jar into extension.jar using the Java jar tool:

    jar -xf external.jar

    This will extract the .class files into package folders. If the top-level package is "com", then you can add those to extension.jar with:

    jar -uf extension.jar com

    (Repeat the second command for each top-level package in the external jar.)

提交回复
热议问题