Adobe AIR project: "error while loading initial content"
Answered
I'm trying to switch from Adobe FlashBuilder to IntelliJ. I'm completely new to IntelliJ.
So far, I've been unable to test my first AIR project. It's a pure Actionscript project (no Flex).
When I click the debug icon, I get the following errors:
[AIR Debug Launcher]: error while loading initial content
[AIR Debug Launcher]: Process finished with exit code 9
The similar posts I've found suggest the AIR SDK might include no compiler. I think I have the SDK with compiler:
C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK
Correct?
Any ideas?
Please sign in to leave a comment.
Do you have antivirus software?
For example, Kaspersky antivirus may decide that debuggable SWF file is dangerous and delete it right after successful compilation. That's why the app fails to start.
Please download and use the complete AIR SDK + Compiler at https://www.adobe.com/devnet/air/air-sdk-download.html or if you need an older version: https://helpx.adobe.com/air/kb/archived-air-sdk-version.html .
Configure IntelliJ IDEA to use this SDK instead and see if it helps.
This is the one I already had. However, I downloaded it again and tested, but still the same.
Could you please share the complete compiler output from the Messages tool window?
Here it is, from the Messages window:
And from the debug window:
This shows AIR SDK is used from "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK".
What's the version reported by adl.exe? Is it 32.0.0.116?
Can you share a sample project that we can use to reproduce the issue at https://uploads.services.jetbrains.com/ ?
I've uploaded my test project with the name:
It's very basic.
"What's the version reported by adl.exe? Is it 32.0.0.116?"
I'm not sure exactly how I'm supposed to get this information. I added the following AS code to an existing project in FlashBuilder:
trace("Capabilities.version : "+Capabilities.version);and then launched the project in debugger mode from FlashBuilder.
The output is the following:
The expected value should have been 32.0.0.116 instead?
Thank you very much for your help. I've spent ages using FlashBuilder, but didn't really need to get into configuration issues, etc. So I'm a bit lost here, but I'm confident that, when I get the proper settings in IntelliJ, I'll be able to use it easily.
I finally managed to launch the project in debug mode (and compile an EXE file of the app). I'm not sure why. Probably thanks to another command I've launched in between from the menu... ?
If you just run adl.exe in the command line, it will print the version, it should be also visible in IntelliJ IDEA configuration:
I've configured your sample project to use the latest AIR SDK from https://www.adobe.com/devnet/air/air-sdk-download.html and it works without issues for me in Run mode:
Actually, I stumble into this issue every time I create a new project.
"error while loading initial content"
And I cannot figure out the proper way to get out of this...
Edit:
This option is checked by default:
Denis Rionnet could you please provide a demo project to reproduce a problem?
Hi Petr, thank you for helping.
I can provide a demo project, but actually, it's really a new, blank project:
Upload ID: 2020_09_03_GuZFWpimLFWtTX6F (file: Test4.zip)
File > New > Project > Flash >
Target platform: Mobile, Pure ActionScript
Output type: Application
Target devices: Android
Flex/AIR SDK: AIRSDK
Target player: 32.0
Create sample app: Main.as
Next (name, location) > Finish
Project structure > Project Settings > Project > Project SDK :
AIRSDK AIR SDK 32.0.0.116
Run in emulator > "initial content not found Process finished with exit code 8"
File > Project Structure > Modules > (My module) > Compiler Options > Generate debuggable SWF
Checked by default > I uncheck.
Run in emulator > works fine.
I don't know if it can be useful, but I use the Choose Runtime plugin, with JDK 1.8.0_112-b15 instead of the current version (in order to be able to sign with a SHA-1 certificate).
You're right: I have Kaspersky, and I find in the logs that it deletes the swf from the output folder.
But then, I wonder why my other project works fine with the debuggable SWF option activated...
> why my other project works fine with the debuggable SWF option activated...
No idea :).
Well, you may add project output folder to the excluded folders list in the antivirus settings.