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

后端 未结 3 760
失恋的感觉
失恋的感觉 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:26

    I was having issue with creating an Android ANE for AdMobs and this is what worked for me.

    Do like Flynn suggested and add the jar in the Java Build Path:

    Eclipse Java Build Path showing GoogleAdMobsAdsSdk jar in the build path

    Then, the only way I could get the AdMobs jar to play nice in the ANE was to export the Android native jar for the ANE with Export... -> Java -> JAR File and have both "Export all output folders for checked projects" and "Export Java source files and resources" checked:

    Eclipse JAR Export with

提交回复
热议问题