Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

error 304: Initial window content is invalid

Open arnon001 opened this issue 1 month ago • 1 comments

Problem Description

I'm using adobe air 51.2.2, this is my first time using adobe air, I'm trying to build an android app to run a specific flash web game (runs on example.com). I'm trying for now just to build it using a minimal index.html, but I'm getting 304 error.

Steps to Reproduce

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/51.2">
    <id>com.arnon001.test</id>
    <versionNumber>1.0.0</versionNumber>
    <filename>example app</filename>
    <name>example</name>
    
    <initialWindow>
        <content>index.html</content>
        <title>example app</title>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>true</fullScreen>
        <aspectRatio>portrait</aspectRatio>
        <renderMode>direct</renderMode>
        <autoOrients>true</autoOrients>
    </initialWindow>

    <icon>
        <image48x48>icon48.png</image48x48>
        <image72x72>icon72.png</image72x72>
        <image80x80>icon80.png</image80x80>
    </icon>

    <android>
        <manifestAdditions><![CDATA[
            <manifest>
                <uses-permission android:name="android.permission.INTERNET"/>
                <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
                <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
                <application android:requestLegacyExternalStorage="true" />
            </manifest>
        ]]></manifestAdditions>
    </android>
</application>

I don't really know whats wrong with this code.

arnon001 avatar Nov 29 '25 12:11 arnon001

Error 304 indicates "The file referenced in the element of the application descriptor is not recognized as a valid HTML or SWF file." (https://airsdk.dev/docs/building/air-developer-tool/error-messages)

Are you certain the html file is correctly included when packaging your application?

marchbold avatar Nov 30 '25 06:11 marchbold