Copy link to clipboard
Copied
Hi,
I created a clean air native extension with a simple function that starts an activity from within the ANE, 'DumbActivity'. It worked.
However, after having DumbActivity extend YouTubeFailureRecoveryActivity in order to start using the YouTube API 3.0, I got a ClassNotFoundException on DumbActivity when I run the ANE.
Worth mentioning that when I run the code as a native android app, it runs properly, and I can use YouTube abilities. Also checked, the DumbActivity class is included in the Jar.
Is that some sort of library conflict or something?
Hi,
Have you created a platform-options-android.xml for android to include external jar(Youtube API), it should be like:
<platform xmlns="http://ns.adobe.com/air/extension/4.0">
<packagedDependencies>
<packagedDependency>youtubeapi.jar</packagedDependency>
</packagedDependencies>
<packagedResources>
</packagedResources>
</platform>
You need to specify the name of the Youtube jar file name inside "PackageDependency" tag.
And, The adt command to package the ANE should be like:
adt -package [Y
...Copy link to clipboard
Copied
Hi,
Have you created a platform-options-android.xml for android to include external jar(Youtube API), it should be like:
<platform xmlns="http://ns.adobe.com/air/extension/4.0">
<packagedDependencies>
<packagedDependency>youtubeapi.jar</packagedDependency>
</packagedDependencies>
<packagedResources>
</packagedResources>
</platform>
You need to specify the name of the Youtube jar file name inside "PackageDependency" tag.
And, The adt command to package the ANE should be like:
adt -package [YOUR NORMAL OPTIONS] -platform Android-ARM -platformoptions platform-options-android.xml -C Android-ARM .
Please Verify.
Thanks,
Adobe AIR Team
Copy link to clipboard
Copied
Thank you! Now what am I doing when it bugs me about 'Namespace of platform-options-android.xml should match extension namespace.' ?
Copy link to clipboard
Copied
Oh the version on extension.xml is 3.1. should I state it as 4?
Copy link to clipboard
Copied
Yes, it should be same as platform-options-android.xml.
Copy link to clipboard
Copied
Now I'm having a lot of resources problems when trying to use the ANE in the project:
Error occurred while packaging the application:
aapt tool failed:C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\strings.xml:19: error: Resource at app_version appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\strings.xml:20: error: Resource at button_install appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\strings.xml:21: error: Resource at button_exit appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\strings.xml:22: error: Resource at title_adobe_air appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\strings.xml:23: error: Resource at text_runtime_required appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\strings.xml:24: error: Resource at text_install_runtime appears in overlay but not in the base package; use <add-resource> to add.
Copy link to clipboard
Copied
Now I'm having a lot of resources problems when trying to use the ANE in the project:
Error occurred while packaging the application:
aapt tool failed:C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res \values\strings.xml:19: error: Resource at app_version appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\ strings.xml:20: error: Resource at button_install appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\ strings.xml:21: error: Resource at button_exit appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\ strings.xml:22: error: Resource at title_adobe_air appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\ strings.xml:23: error: Resource at text_runtime_required appears in overlay but not in the base package; use <add-resource> to add.
C:\Users\AVI\AppData\Local\Temp\c3957387-2e6c-41d5-926e-dc81c5305a12\app_entry_res\values\ strings.xml:24: error: Resource at text_install_runtime appears in overlay but not in the base package; use <add-resource> to add.
Copy link to clipboard
Copied
Hey Mike, did you ever find a way around these resource packaging issues?