I am trying to create ANEto get AdvertisingIdfor android. I use Flash Builder 4.7with AIR SDK 14.0. I could successfully create ANE, but the problem is that it always throws an error like
A required `meta-data` tag in your app `AndroidManifest.xml` does not exist.
You must have the following declaration within the
<application> element:
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
I already added this metadata to AndroidManifest.xml, which is in my Java application ANE. If I include this in the tag Application-app.xml android->application, it will not cause any errors, but it will not move forward.
Here is my AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.company.androidnativeextensions"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
<activity
android:name="com.company.androidnativeextensions.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Santu source
share