I'm actually trying to create an ANE that would do a very simple thing : retrieve the IDFA on both iOS and Android devices. I'm following this tutorial to setup this ANE : http://www.adobe.com/devnet/air/articles/building-ane-ios-android-pt1.html
I'm currently in high trouble regarding the way to retrieve the Advertising Identifier on Android. It looks like once my ANE is compiled, it cannot find the class "com.google.android.gms.ads.identifier.AdvertisingIdClient"
I tried many ways to include the right library in my ANE, but nothing looks to do the job, always the same errors.
This is what I tested :
- updated the Android SDK tool, builds tools and Android repository, Google Play Services and Google Repository in Android Studio
- included the play-service-basement.jar in my libraries (and updated the graddle file as it should)
- turned FlashRuntimeExtension.jar and play-service-basement.jar in one unique .jar
Nothings seems to work, alway the same error :
Didn't find class "com.google.android.gms.ads.identifier.AdvertisingIdClient" on path: DexPathList[[zip file "/data/app/air.com.doodahprod.slotAdventureEgyptian-1/base.apk"],nativeLibraryDirectories=[/data/app/air.com.doodahprod.slotAdventureEgyptian-1/lib/arm, /vendor/lib, /system/lib]]
Do you have any idea on how I could fix this ?
Thanks a lot.