Error in Making Appinventor

Hello everyone, I am getting some error in building Appinventor. Any help is appreciated.

Error

YaClientApp:
     [java] Picked up _JAVA_OPTIONS: -Xmx1024M
     [java] Compiling module com.google.appinventor.YaClient
     [java]    Ignored 2 units with compilation errors in first pass.
     [java] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
     [java]    Computing all possible rebind results for 'com.google.appinventor.client.editor.youngandroid.BlocklyPanel.BlocklySource'
     [java]       Rebinding com.google.appinventor.client.editor.youngandroid.BlocklyPanel.BlocklySource
     [java]          Invoking generator com.google.gwt.query.rebind.JsniBundleGenerator
     [java]             JsniBundleGenerator - importing external javascript: com/google/appinventor/client/editor/youngandroid/blockly.js
     [java]    Compiling 1 permutation
     [java]       Compiling permutation 0...
     [java]    Compile of permutations succeeded
     [java]    Compilation succeeded -- 206.704s
     [java] Linking into C:\Extensionforkodular\appinventor-sources\appinventor\appengine\build\war\ode; Writing extras to C:\Extensionforkodular\appinventor-sources\appinventor\appengine\build\extra\ode
     [java]    Invoking Linker Cross-Site-Iframe
     [java]       [ERROR] Failed to link
     [java] java.lang.OutOfMemoryError: Java heap space
     [java]     at java.util.Arrays.copyOf(Arrays.java:3332)
     [java]     at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
     [java]     at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
     [java]     at java.lang.StringBuilder.append(StringBuilder.java:136)
     [java]     at com.google.gwt.core.linker.CrossSiteIframeLinker.wrapPrimaryFragment(CrossSiteIframeLinker.java:700)
     [java]     at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.generatePrimaryFragmentString(SelectionScriptLinker.java:411)
     [java]     at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.generatePrimaryFragment(SelectionScriptLinker.java:386)
     [java]     at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.doEmitCompilation(SelectionScriptLinker.java:254)
     [java]     at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.link(SelectionScriptLinker.java:196)
     [java]     at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLinkForOnePermutation(StandardLinkerContext.java:384)
     [java]     at com.google.gwt.dev.Link.finishPermutation(Link.java:483)
     [java]     at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:445)
     [java]     at com.google.gwt.dev.Link.link(Link.java:178)
     [java]     at com.google.gwt.dev.Compiler.compile(Compiler.java:244)
     [java]     at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
     [java]     at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
     [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
     [java]     at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
     [java]     at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
     [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:125)
     [java]          [ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...)

BUILD FAILED
C:\Extensionforkodular\appinventor-sources\appinventor\build.xml:16: The following error occurred while executing this line:
C:\Extensionforkodular\appinventor-sources\appinventor\appengine\build.xml:553: Java returned: 1

Total time: 4 minutes 21 seconds

This is the issue here. Unset this environment variable on Windows because it overrides the max memory specified for the YaClientApp compilation, which needs 3-4 GB of RAM to complete successfully.

3 Likes

Now it worked @ewpatton thank you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.