Java Android的AdobeAIR封装

Java Android的AdobeAIR封装,java,xml,air,Java,Xml,Air,我似乎得到了这个错误。。。我相信我键入的所有内容都是正确的: desktop/adobeairsdk/bin/adt -package -target apk -storetype pkcs12 -keystore ./desktop/mycert.p12 myApp.apk ./desktop/Untitled-1-app.xml -C ./desktop/Untitled-1.swf 我得到: unexpected failure: inputs not set java.lang

我似乎得到了这个错误。。。我相信我键入的所有内容都是正确的:

desktop/adobeairsdk/bin/adt -package -target apk -storetype pkcs12 -keystore ./desktop/mycert.p12 myApp.apk ./desktop/Untitled-1-app.xml -C ./desktop/Untitled-1.swf
我得到:

unexpected failure: inputs not set
    java.lang.IllegalStateException: inputs not set
        at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:59)
        at com.adobe.air.ADT.parseArgsAndGo(ADT.java:504)
        at com.adobe.air.ADT.run(ADT.java:361)
        at com.adobe.air.ADT.main(ADT.java:411)
以下是my.xml文件的内容:

<?xml version ="1.0" encoding="utf-8" ?>
<application xmlns="http://ns.adobe.com/air/application/2.5">
    <id>com.adobe.example.Untitled-1</id>
    <versionNumber>1.000</versionNumber>
    <filename>Untitled-1</filename>
    <description></description>
    <name>Untitled-1</name>
    <copyright></copyright>
    <initialWindow>
        <content>Untitled-1.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
    </initialWindow>
    <supportedProfiles>mobileDevice</supportedProfiles>
      <android>
        <manifestAdditions>
            <![CDATA[
                <manifest android:installLocation='auto'>
                    <uses-permission android:name="android.permission.INTERNET" />
                    <supports-screens android:normalScreens="true"/>
                    <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                    <application android:enabled="true">
                        <activity android:excludeFromRecents="false">
                            <intent-filter>
                                <action android:name="android.intent.action.MAIN" />
                                <category android:name="android.intent.category.LAUNCHER" />
                            </intent-filter>
                        </activity>
                    </application>
                </manifest>
            ]]>
        </manifestAdditions>
    </android>

    <customUpdateUI>false</customUpdateUI>
    <allowBrowserInvocation>false</allowBrowserInvocation>
    <icon>
    <image16x16>AppIconsForAIRPublish/AirApp_16.png</image16x16><image32x32>AppIconsForAIRPublish/AirApp_32.png</image32x32><image48x48>AppIconsForAIRPublish/AirApp_48.png</image48x48><image128x128>AppIconsForAIRPublish/AirApp_128.png</image128x128></icon>
</application>

com.adobe.example.Untitled-1
1
无标题-1
无标题-1
无标题-1.swf
标准
假的
真的
移动设备
]]>
假的
假的
AppIconsForAIRPublish/AirApp_16.pngAppIconsForAIRPublish/AirApp_32.pngAppIconsForAIRPublish/AirApp_48.pngAppIconsForAIRPublish/AirApp_128.png
我有点卡住了。。。有什么想法吗?欧欧欧


提前感谢您的帮助。

看看这个。可能您在打包项目之前没有构建它。您只需要创建AIR包来重新分发应用程序。

我也有这个问题。然后我重新启动win7。之后它运行良好。

事实上,我在构建应用程序时也遇到了同样的错误。但是当我在WindowsXP上尝试相同的代码时,它现在可以工作了。我还没有弄清楚是什么导致了Windows7的问题。但是它在XP中工作。你应该试试。谢谢。它在我的系统上也正常工作。我一定是在证书生成过程中犯了一些错误。