适用于 Android 的 Adob​​e AIR 打包

发布于 2024-11-07 17:28:07 字数 2940 浏览 0 评论 0原文

我似乎收到此错误...我相信我正确输入了所有内容:

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)

这是我的 .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>

我有点卡住了...有什么想法吗? O_o

提前感谢您的帮助。

I seem to be getting this error... I believe I am typing everything correctly:

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

To which I get:

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)

Here is the content of my .xml file:

<?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>

I am a bit stuck... any ideas? O_o

Thank you for your help in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

别靠近我心 2024-11-14 17:28:07

请查看这篇帖子。可能您在打包之前没有构建该项目。您只需创建 AIR 包来重新分发您的应用程序。

Look at this post. Probably you didn't build the project before packaging it. You'll only want to create the AIR package to redistribute your application.

满身野味 2024-11-14 17:28:07

我也有这个问题。然后我重启win7。之后效果很好。

I also have this problem. Then I reboot win7. It works well after that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文