Bin-debug missing html file cannot rebuild flex4

I am unable to recreate my Main.html which is needed to build from flashbuilder4. I can probably do it manually at cost, but what a boredom! I am sure this is possible.

Cleanup rebuilds most of this folder and then starts the project, gets an error that cannot find Main.html grrrrrrrr

+2


a source to share


6 answers


I am using FB 4.5, but this happened in earlier versions of FB / FlxB as well. I found that the reason for this is because the index.template.html file in the html template directory has been renamed to Main.html (or something like the name of the application file in my project). If a template file does not have ".template" in its name, the build process will not recognize that it needs to generate a file from it.

What worked for me:

The "manual" way
Go to the html-template file and rename the * .html file back to index.template.html. Make a clean / build.



the "automatic" way
Go to the Project Properties dialog box and navigate to the Flex Compiler panel. Uncheck Generate HTML Shell File and click Apply. You will be warned that all your files in the html-template directory will be destroyed. This is important if you've configured them, but if you haven't, don't worry about it. If you copy your settings to a text file now.

Now double-check "Create HTML wrapper file" and click "Apply". The html templates directory will be populated and this problem will (hopefully) be resolved. If you have settings for files in this directory, reapply them now. Do a clean / build and you should be installed.

+6


a source


Is your html-Template directory empty? If so, that's why bin-debug doesn't have HTML files in it. It happens sometimes, I never tracked why.

You can get the default html template files:



[FlashBulderInstallDirectory] \ Plugins \ com.adobe.flexbuilder.project_4.0.0.272416 \ resources \ html-templates.zip

Unzip the file; copy the templates to the html-template directory. Then clean up the project and you should be good to go.

+1


a source


If you right click on it and select properties and then select Flex Compiler and uncheck Generate HTML Skin File (or just uncheck Enable Web Browser Integration), this Flex command will restore HTML skin files

0


a source


Doing a clean build of the project fixed that for me. It's on Flash Builder 4.5.

0


a source


The post marked as answer is correct, but I must add that you better have write permissions in the html template folder.

I needed to run Flash Builder as Administrator for a bit and accidentally rebuild my project still as Administrator. Flash Builder corrupted project folder permissions.

0


a source


I am using Adobe Flash Builder 4.5

I had the same problem. The message marked as a response is correct. If the solution doesn't work, click the Issues icon in Flash Builder and you will see some errors. After fixing the errors, it will work fine.

0


a source







All Articles