Copy link to clipboard
Copied
Hello!
Since switching from Animate CC back to Flash Pro CS6 I've been having a few errors.
Specifically when trying to publish .apk files with Adobe AIR SDK 32.0.0.116.
I currently have the following error:
"Error creating files. The Air version set in the Publish Settings of the initial content SWF exceeds that allowed for the descriptor namespace."
These are the SDK installation steps I followed with Sources:
I'm not sure what to do at this point, and appericate any help or input.
Some Additional Details that might Help:
Copy link to clipboard
Copied
check your application descriptor. ie, the xml file that looks something like
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/30.0">
<id>test</id>
<versionNumber>1.0</versionNumber>
<filename>test</filename>
<description/>
<name>test</name>
<copyright/>
<initialWindow>
<content>test.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>auto</renderMode>
</initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
</application>
Copy link to clipboard
Copied
I had a look at the xml file and noticed it listed the Air version as "3.2" instead of "32.0".
Changing the air version with a code editor doesn't retain as the everytime I try to publish an .apk the xml is overwritten and changes back to "3.2".
The only files created when publishing are just a SWF file and a .XML file. No .apk
Could this be why I'm having issues is just conflincting version numbers?
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="<a href="http://ns.adobe.com/air/application/3.2" target="_blank">http://ns.adobe.com/air/application/3.2</a>">
<id>TestCS6</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel/>
<filename>TestCS6</filename>
<description/>
<!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
<name>TestCS6</name>
<!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
<copyright/>
<initialWindow>
<content>TestCS6.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions>
<![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
</manifest>]]>
</manifestAdditions>
</android>
</application>
.
Copy link to clipboard
Copied
make the file read only.
Copy link to clipboard
Copied
@kglad your suggestion seems to working 🙂
I've been sucessfully able to publish a few .apks and run them on android devices after updating the Air version in the XML file and making it read only.
Though there are some drawbracks to this, as I won't be able to test standalone SWFs without making the XML writeable again. When I attempt to target Flash Player, I just get a prompt inidcating the file is read only.
This is a great work around regardless. Thank you for your help!
Copy link to clipboard
Copied
you're welcome.
i typically make a copy of the xml file so i have a backup and template to use to paste needed portions. i then make the app descriptor read-only and not read-only as needed .