Skip to content Skip to sidebar Skip to footer

Advertisingidclient Asking For Meta-data Although It Has Been Included

I am trying to create ANE to get AdvertisingId for android. I am using Flash Builder 4.7 with AIR SDK 14.0. I could successfully create the ANE, but the problem is, it is always th

Solution 1:

Your metadata usage seems fine. The issue lies with the android build system not being able to resolve @integer/google_play_services_version which comes from res/values/version.xml.

This wouldn't have even been an issue on just another android project but since this is an ANE project, it is up to ADT to put the res folder in the right place inside the final APK. That's what packagedResources are for.

NOTE: It is not necessary to have any packagedDependencies specified inside Platform.xml in order to use packagedResources. It is perfectly alright to have a Platform.xml that only has packagedResources specified.

Here's the Link to Adobe's page about including resources in your ANE builds with relevant examples.

Worst case you can replace @integer/google_play_services_version with the value inside version.xml.

Post a Comment for "Advertisingidclient Asking For Meta-data Although It Has Been Included"