Highlighted

Flash Pro CS6 APK Publishing Errors

Explorer ,
Oct 17, 2019

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:

 

  1. I first extracted the Air SDK files into a folder called "AIR32.0" in "C:\Program Files (x86)\Adobe\Adobe Flash CS6"

  2. In Flash CS6, I went to Help>Manage AIR SDK> and added the path to my "AIR32.0" folder.

  3. When publishing, I first got a "dx tool failed: Could not create the Java virtual machine" error. I fixed it by adding a "_JAVA_OPTIONS" enviroment varible with the value "-Xmx512M"

  4. I restarted Flash, and now the document's tartget is listed as "AIR 32.0.0.116Picked up _JAVA_OPTIONS: -Xmx512 for Android" instead of just "AIR 32.0.0.116"
  5. When I go to publish I 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."

 

I'm not sure what to do at this point, and appericate any help or input.

 

Some Additional Details that might Help:

 

  • I'm using Windows 10
  • Unistalled and re-installed Flash CS6 with preferences reset.
  • Do not have any extensions installed.
  • Latest version of flash player I can plublish to is "Flash player 11.2" (not sure how to upgrade that).
  • Trying to publish blank ActionScript 3.0 files.
  • Have no other Adobe Apps (Aside from PDF reader) installed.
TOPICS
Error

Views

164

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Flash Pro CS6 APK Publishing Errors

Explorer ,
Oct 17, 2019

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:

 

  1. I first extracted the Air SDK files into a folder called "AIR32.0" in "C:\Program Files (x86)\Adobe\Adobe Flash CS6"

  2. In Flash CS6, I went to Help>Manage AIR SDK> and added the path to my "AIR32.0" folder.

  3. When publishing, I first got a "dx tool failed: Could not create the Java virtual machine" error. I fixed it by adding a "_JAVA_OPTIONS" enviroment varible with the value "-Xmx512M"

  4. I restarted Flash, and now the document's tartget is listed as "AIR 32.0.0.116Picked up _JAVA_OPTIONS: -Xmx512 for Android" instead of just "AIR 32.0.0.116"
  5. When I go to publish I 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."

 

I'm not sure what to do at this point, and appericate any help or input.

 

Some Additional Details that might Help:

 

  • I'm using Windows 10
  • Unistalled and re-installed Flash CS6 with preferences reset.
  • Do not have any extensions installed.
  • Latest version of flash player I can plublish to is "Flash player 11.2" (not sure how to upgrade that).
  • Trying to publish blank ActionScript 3.0 files.
  • Have no other Adobe Apps (Aside from PDF reader) installed.
TOPICS
Error

Views

165

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 17, 2019 0
Adobe Community Professional ,
Oct 18, 2019

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>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 18, 2019 0
Explorer ,
Oct 18, 2019

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>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 18, 2019 0
Adobe Community Professional ,
Oct 18, 2019

Copy link to clipboard

Copied

make the file read only.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 18, 2019 0
Explorer ,
Oct 18, 2019

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!  

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 18, 2019 0
kglad LATEST
Adobe Community Professional ,
Oct 18, 2019

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 .

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 18, 2019 0