Adobe Native Extensions: How do I package third party libraries (.jar) in a Android Native Extension for my Flex App?

拜拜、爱过 提交于 2019-12-06 11:58:28

Your second method using the platform options method is the best method available.

Problem with packaged dependencies with Android and AIR are nearly always caused by the build tools in the AIR SDK. The versions included with older versions of the SDK are not recent enough to use the latest features from the Google Play Library nor use some of the more recent SDK's.

If you have the Android SDK build tools installed then you can copy the dx.jar file from build-tools/x.x.x/lib/dx.jar over the same file in your AIR SDK located here:

AIRSDK/lib/android/bin/dx.jar

You must replace the one in the AIR SDK with the one from the Android build tools and not the other way around.

I also highly suggest you update adb at this time. Updating adb can solve a lot of connection and debugging issues.

You should not use a version > 20.0 of the Android build tools. Anything higher than 20.0 currently has issues with the AIR packager.

If you use AIR 18+ the build tools have been updated to v20.0.0 and you shouldn't have to update the build tools unless you are using even more modern features (such as the android support v13 lib).

Reference: http://airnativeextensions.com/knowledgebase/tutorial/5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!