Intelij想法错误编译Adobe Air for Android - dx工具失败

时间:2017-12-22 05:42:10

标签: android air distriqt

今天,当我尝试从InteliJ Idea编译Adobe Air App时,我随机开始出现以下错误。

Failed to package AIR application FARQAndroidFree.apk:
            dx tool failed:
            UNEXPECTED TOP-LEVEL ERROR:
            java.lang.OutOfMemoryError: GC overhead limit exceeded
            at java.util.Arrays.copyOf(Arrays.java:3181)
            at java.util.ArrayList.grow(ArrayList.java:261)
            at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:235)
            at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:227)
            at java.util.ArrayList.add(ArrayList.java:458)
            at com.android.dx.ssa.Dominators$DfsWalker.visitBlock(Dominators.java:263)
            at com.android.dx.ss...
            [Full error message]
            [ADT command line]

我正在使用Adobe AIR SDK 28

1 个答案:

答案 0 :(得分:3)

尝试增加IntelliJ用于打包应用程序的Java运行时可用的内存量。

您可以在以下位置找到:

   <html>
<body>
<form method='POST'>
                  <input id='star-1' type='radio' name='rating[]' value='star-5'>
                  <label for='star-1' title='Perfection'></label>
                  <input id='star-2' type='radio' name='rating[]' value='star-4'>
                  <label for='star-2' title='Amazing'></label>
                  <input id='star-3' type='radio' name='rating[]' value='star-3'>
                  <label for='star-3' title='wow'></label>
                  <input id='star-4' type='radio' name='rating[]' value='star-2'>
                  <label for='star-4' title='Nice'></label>
                  <input id='star-5' type='radio' name='rating[]' value='star-1'>
                  <label for='star-5' title='Not Bad'></label>
                  <input type="submit" name="submit" value="submit"/>
                </form>


</body> 
</html>
    <?php
    if(isset($_POST['submit'])){
     if(isset($_POST['rating'])){

       echo "<span>You have selected :<b> ".$_POST['rating'][0]."</b></span>";
       }else{ echo "<span>Please choose any radio button.</span>";}
       }

尝试Preferences / Build ... / Compiler / Actionscript ... / Compiler heap size 标记的某处。

enter image description here