How do I fix a “initial content not found” error?

2019-04-27 03:54发布

Using Flash Builder 4.6 on some code from a client. Clicked on debug (also tried run) and received this error:

Process terminated unexpectedly.

initial content not found

Launch command details:  "C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0
\bin\adl.exe" -runtime "C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0
\runtimes\air\win" -profile mobileDevice -screensize 640x920:640x960 -XscreenDPI 326 -
XversionPlatform IOS "C:\Users\tstiffler\Adobe Flash Builder 4.6\TP\bin-debug\TP-
app.xml" "C:\Users\tstiffler\Adobe Flash Builder 4.6\TP\bin-debug"

How do I fix this? Please be as detailed as you can as I've never used Flash Builder before. Thanks!

9条回答
Juvenile、少年°
2楼-- · 2019-04-27 04:00

For me the opening the Main-app.xml file, change something insignificant and saving it again, worked. Maybe something to do with caching of build files or something? I must say, this was in 4.7 though.

查看更多
Bombasti
3楼-- · 2019-04-27 04:02

This happen to me yesterday, I fixed it by creating a new project and copying everything in it except the main constructor as3 file. Then I copied the variables and functions from the old( broke ) main file and pasted them in the new one.

I think the reason is that the main class gets file gets corrupted somehow and flash builder cannot read it even though it looks fine in the editor.

查看更多
地球回转人心会变
4楼-- · 2019-04-27 04:05

I had Main-app.xml file, in it I changed the following line

<content>[This value will be overwritten by Flash Builder in the output app.xml]</content>

to

<content>{yourAppName}.swf</content>

and initial content problem was solved.

查看更多
冷血范
5楼-- · 2019-04-27 04:06

@hrehma's answer is right. And further, if you're using a wrong namespace, compiler won't get the xml tag. This happens when you change your AIR SDK version.

  • Correct the content tag (like @hrehma said)
  • Correct the namespace in application.xml root.

For example if you're using AIR SDK 16:

change

<application xmlns="http://ns.adobe.com/air/application/15.0">

to

<application xmlns="http://ns.adobe.com/air/application/16.0">

Hope this may help you :)

查看更多
Deceive 欺骗
6楼-- · 2019-04-27 04:08

I went to the app descriptor XML file just like hrehman, but mine just had the SWF file that I've been using - MyGame-iOS.swf - and I tried changing this to any other name (MyGame.swf), then tried building and running and it worked fine.

Not the best solution, but just in case someone goes to do what hrehman did, and doesn't see the square-bracketed message and is still stuck.

查看更多
时光不老,我们不散
7楼-- · 2019-04-27 04:10

I think this error is a bit of a catch-all and is very unhelpful.

查看更多
登录 后发表回答