AIR Google Play Services library classes missing apk

161 views Asked by At

I am working on a test app to test an ane I have built with Google Play Services included. I had things working fine, but recently I updated the version of the Google Play Services library I was using, and now when I built the project in Adobe Flash CC, it seems to be stripping out the Google Play Services classes from the apk. When I decompile the apk I can see they are missing. When I put back the old version of GPlay, I can see it doesn't strip them out.

This post mentions a tool within the AIR needs updating (dx.jar) and this post seems to have the same message. I did update that file but it did not fix the issue.

Thanks!

1

There are 1 answers

4
Michael On

The problem will be with the AIR SDK. You need to update the dx.jar in your AIR SDK, I've logged an issue with Adobe about this but they haven't updated the build tools as yet so we have to do it manually:

Have a look here for the details: http://airnativeextensions.com/knowledgebase/tutorial/5

It's important that you have a recent version of the Android SDK installed and updated for this to work.

Also rather than packaging the Google Play Libraries into your ANE I suggest you use a shared ANE, like this one: https://github.com/distriqt/ANE-googleplayservices

Otherwise you can cause conflicts with other ANE's that use the Google Play Library.