Build Failed

111 views
Skip to first unread message

ankrit...@gmail.com

unread,
Apr 26, 2019, 7:50:01 AM4/26/19
to App Inventor Open Source Development
Hi,
I am trying to build using ant, after doing some changes in code.
How do I identify the cause of the failure?
I made changes in some classes related to SpeechRecognizer component, but I cannot see any build error lines related to the same files in the whole build process log.
How to understand this log and identify the cause of build failure?

Following is the output of ant command:

$ ant
Buildfile: E:\app-inv\appinventor-sources\appinventor\build.xml

all:

init:

MakeWarLibsDir:

common_BlocksEditorHttpConstants:

init:

BlocksEditorHttpConstants:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

components_CommonConstants:

init:

CommonConstants:

WarLibs:

AiSharedLib:

AiServerLib:

components_JsonComponentDescription:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
      [jar] Building jar: E:\app-inv\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:
   [depend] Deleted 3 out of date files in 3 seconds
    [javac] Compiling 1 source file to E:\app-inv\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning
      [jar] Building jar: E:\app-inv\appinventor-sources\appinventor\build\components\AndroidRuntime.jar

JsonComponentDescription:
    [javac] Compiling 241 source files to E:\app-inv\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentDescriptorGenerator, returning RELEASE_6.
    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentDescriptorGenerator' less than -source '1.7'
    [javac] warning: In component NearField, event TagWritten is missing a description.
    [javac] warning: In component Pedometer, event StartedMoving is missing a description.
    [javac] warning: In component Pedometer, event StoppedMoving is missing a description.
    [javac] warning: In component Pedometer, event CalibrationFailed is missing a description.
    [javac] warning: In component Pedometer, event GPSAvailable is missing a description.
    [javac] warning: In component Pedometer, event GPSLost is missing a description.
    [javac] Note: Wrote file file:/E:/app-inv/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription/simple_components.json
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 8 warnings
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription\com\google\appinventor\components\runtime\errors\package-info.class
     [copy] Copying 1 file to E:\app-inv\appinventor-sources\appinventor\build\components

components_ComponentTranslation:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
      [jar] Building jar: E:\app-inv\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:

ComponentTranslation:
    [javac] Compiling 241 source files to E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentTranslation
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentTranslationGenerator, returning RELEASE_6.
    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentTranslationGenerator' less than -source '1.7'
    [javac] warning: In component NearField, event TagWritten is missing a description.
    [javac] warning: In component Pedometer, event StartedMoving is missing a description.
    [javac] warning: In component Pedometer, event StoppedMoving is missing a description.
    [javac] warning: In component Pedometer, event CalibrationFailed is missing a description.
    [javac] warning: In component Pedometer, event GPSAvailable is missing a description.
    [javac] warning: In component Pedometer, event GPSLost is missing a description.
    [javac] Note: Wrote file file:/E:/app-inv/appinventor-sources/appinventor/components/build/classes/ComponentTranslation/ComponentsTranslation.java
    [javac] Note: Wrote file file:/E:/app-inv/appinventor-sources/appinventor/components/build/classes/ComponentTranslation/AutogeneratedOdeMessages.java
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 8 warnings
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentTranslation\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentTranslation\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentTranslation\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentTranslation\com\google\appinventor\components\runtime\errors\package-info.class
     [copy] Copying 1 file to E:\app-inv\appinventor-sources\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
     [copy] Copying 1 file to E:\app-inv\appinventor-sources\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client

AiClientLib:
   [depend] Deleted 12 out of date files in 17 seconds
    [javac] Compiling 11 source files to E:\app-inv\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes
    [javac] Note: E:\app-inv\appinventor-sources\appinventor\appengine\src\com\google\appinventor\client\editor\simple\components\MockComponent.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
     [copy] Copying 1 file to E:\app-inv\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor

AiRebindLib:

blocklyeditor_BlocklyCompile:

init:

CheckBlocklyCompile:

BlocklyCompile:

CopyToBuildWar:

CheckYaClientApp:

YaClientApp:
     [java] Apr 26, 2019 4:56:17 PM java.util.prefs.WindowsPreferences <init>
     [java] WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
     [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 -- 264.445s
     [java] Linking into E:\app-inv\appinventor-sources\appinventor\appengine\build\war\ode; Writing extras to E:\app-inv\appinventor-sources\appinventor\appengine\build\extra\ode
     [java]    Link succeeded
     [java]    Linking succeeded -- 5.840s

CheckKeystore:

Keystore:

CheckAuthKey:

InstallAuthKey:
    [unzip] Expanding: C:\Users\DELL\.appinventor\authkey.zip into E:\app-inv\appinventor-sources\appinventor\appengine\build\war\WEB-INF

all:

init:

CheckBlocklyCompile:

BlocklyCompile:

components_JsonComponentDescription:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
      [jar] Building jar: E:\app-inv\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:

JsonComponentDescription:

common_CommonTestUtils:

init:

CommonTestUtils:

BlocklyTestbed:

all:

init:

CommonUtils:

CommonVersion:

BlocksEditorHttpConstants:

CommonTestUtils:

all:

init:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

CopyToRunLibDir:

components_AndroidRuntime:

init:

CommonConstants:

HtmlEntities:

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:

components_Barcode:

Barcode:

components_ComponentList:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
      [jar] Building jar: E:\app-inv\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:

Barcode:

ComponentList:
    [javac] Compiling 241 source files to E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentList
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentListGenerator, returning RELEASE_6.
    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentListGenerator' less than -source '1.7'
    [javac] warning: In component NearField, event TagWritten is missing a description.
    [javac] warning: In component Pedometer, event StartedMoving is missing a description.
    [javac] warning: In component Pedometer, event StoppedMoving is missing a description.
    [javac] warning: In component Pedometer, event CalibrationFailed is missing a description.
    [javac] warning: In component Pedometer, event GPSAvailable is missing a description.
    [javac] warning: In component Pedometer, event GPSLost is missing a description.
    [javac] Note: Wrote file file:/E:/app-inv/appinventor-sources/appinventor/components/build/classes/ComponentList/simple_components.txt
    [javac] Note: Wrote file file:/E:/app-inv/appinventor-sources/appinventor/components/build/classes/ComponentList/simple_components_build_info.json
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 8 warnings
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentList\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentList\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentList\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty E:\app-inv\appinventor-sources\appinventor\components\build\classes\ComponentList\com\google\appinventor\components\runtime\errors\package-info.class
     [copy] Copying 1 file to E:\app-inv\appinventor-sources\appinventor\build\components
     [copy] Copying 1 file to E:\app-inv\appinventor-sources\appinventor\build\components

BuildServer:
     [copy] Copying 4 files to E:\app-inv\appinventor-sources\appinventor\buildserver\build\classes\BuildServer\files
      [jar] Building jar: E:\app-inv\appinventor-sources\appinventor\buildserver\build\run\lib\BuildServer.jar

all:

init:

CommonConstants:

HtmlEntities:

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:

ComponentProcessingLib:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
      [jar] Building jar: E:\app-inv\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

JsonComponentDescription:

XmlComponentDescription:
    [javac] Compiling 1 source file to E:\app-inv\appinventor-sources\appinventor\components\build\classes\XmlComponentDescription
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.LangDefXmlGenerator, returning RELEASE_6.
    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.LangDefXmlGenerator' less than -source '1.7'
    [javac] Note: Wrote file file:/E:/app-inv/appinventor-sources/appinventor/components/build/classes/XmlComponentDescription/ya_lang_def.xml
    [javac] 2 warnings
     [copy] Copying 1 file to E:\app-inv\appinventor-sources\appinventor\build\components

Barcode:

ComponentList:

ComponentTranslation:

all:

init:

CheckKeystore:

MakeKeyStore:

GenPlayAppSrcZip:
     [copy] Copying 1 file to E:\app-inv\appinventor-sources\appinventor\aiplayapp
      [zip] Building zip: E:\app-inv\appinventor-sources\appinventor\buildserver\build\aiplayapp.zip
   [delete] Deleting: E:\app-inv\appinventor-sources\appinventor\aiplayapp\android.keystore

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

CopyToRunLibDir:

components_AndroidRuntime:

init:

CommonConstants:

HtmlEntities:

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:

components_Barcode:

Barcode:

components_ComponentList:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
      [jar] Building jar: E:\app-inv\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:

Barcode:

ComponentList:

BuildServer:

CheckPlayApp:

PlayApp:
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder build
     [java] INFO: temporary project root: C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\android.keystore from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\assets\AI2Companion-Icon.png from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\assets\Instructions.png from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\assets\connectwCode.png from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\assets\connectwQR.png from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\assets\mooning.png from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\assets\splash.html from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\src\edu\mit\appinventor\aicompanion3\Screen1.bky from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\src\edu\mit\appinventor\aicompanion3\Screen1.scm from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\src\edu\mit\appinventor\aicompanion3\Screen1.yail from input zip
     [java] Apr 26, 2019 5:03:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\DELL\AppData\Local\Temp\1556278429467_0.44230972003776226-0\youngandroidproject\project.properties from input zip
     [java] java.lang.IllegalArgumentException: Unable to parse file - cannot locate beginning of $JSON section
     [java]     at com.google.appinventor.buildserver.FormPropertiesAnalyzer.parseSourceFile(FormPropertiesAnalyzer.java:62)
     [java]     at com.google.appinventor.buildserver.FormPropertiesAnalyzer.getComponentBlocksFromSchemeFile(FormPropertiesAnalyzer.java:123)
     [java]     at com.google.appinventor.buildserver.ProjectBuilder.getComponentBlocks(ProjectBuilder.java:279)
     [java]     at com.google.appinventor.buildserver.ProjectBuilder.build(ProjectBuilder.java:155)
     [java]     at com.google.appinventor.buildserver.Main.main(Main.java:82)

BUILD FAILED
E:\app-inv\appinventor-sources\appinventor\build.xml:21: The following error occurred while executing this line:
E:\app-inv\appinventor-sources\appinventor\buildserver\build.xml:238: Java returned: 1

Total time: 9 minutes 20 seconds

Jose Dominguez

unread,
Apr 26, 2019, 9:52:58 AM4/26/19
to app-inventor-open-source-dev
Hi there,

The key is to find the first error or exception and take it from there. In your case, it seems to be at:
[java] java.lang.IllegalArgumentException: Unable to parse file - cannot locate beginning of $JSON section

This is something that has been discussed in this forum before, so next step is to do a search.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

ankrit...@gmail.com

unread,
Apr 26, 2019, 12:06:26 PM4/26/19
to App Inventor Open Source Development
Hi Jose,
I looked at it and found that I faced this issue earlier too, to which Evan suggested merging PR  https://github.com/mit-cml/appinventor-sources/pull/1556.
This PR has already been merged to the master. And, I just updated my master too. 
Is there any other possible solution?

ankrit...@gmail.com

unread,
Apr 29, 2019, 2:12:53 PM4/29/19
to App Inventor Open Source Development
Hi,
I just wanted to confirm if this error is only with my build system or others are also facing the same issue?
Should I re-clone my forked repo(since it was working well, last time I pushed something in it)? Please suggest to me.
Thanks.

Jose Dominguez

unread,
Apr 29, 2019, 2:49:57 PM4/29/19
to app-inventor-open-source-dev
Hi Ankriti,

this seems to be an issue on Windows only, so I guess not that many
people use that platform for development. I personally do not have
access to a [virtual] machine with Windows at the moment.

You can try and clone again, or you could try using a virtual machine,
if you'd rather do that.
There is a pull request for a Vagrant environment that you can test if
you want too: https://github.com/mit-cml/appinventor-sources/pull/1540
There also a very possibly outdated Docker file for AI too:
https://github.com/josmas/appinventor-env-docker

None of those answer your question directly, though.

cheers,
José

Evan W. Patton

unread,
Apr 29, 2019, 4:01:35 PM4/29/19
to app-inventor-o...@googlegroups.com
Does it fail even when you checkout master and pull?

Evan

Sent from my iPhone
--

ankrit...@gmail.com

unread,
Apr 29, 2019, 5:10:28 PM4/29/19
to App Inventor Open Source Development
Hi Jose, I think I should switch to linux then. It looks more reliable for development purposes.

Hi Evan, I stashed all changes, switched to master, updated and built it. It was successful.

Another thing that I did was I cloned my forked repo and built my speech-recognizer branch with the last commit. It builds fine. Then I copy-pasted modified files since the last commit on my branch and then build failed. Are there some issues with the current code changes I did, that is causing build failure? Though most of the changes were related to documenting code. I don't think that should cause any such errors.
Git diff is here - https://pastebin.com/22tG37SB.

Evan Patton

unread,
May 2, 2019, 7:40:43 PM5/2/19
to App Inventor Open Source Development
Hi Ankriti,

We use a mix of macOS and Linux for development. The Jenkins server that tests the builds runs on macOS. We don't typically test on Windows, so occasionally these platform-specific bugs get introduced (although we do try to fix them when they are reported)..

Cheers,
Evan

ankrit...@gmail.com

unread,
May 3, 2019, 5:29:54 PM5/3/19
to App Inventor Open Source Development
Hi,
This time I setup AI in fedora. I am getting following build error:

[java] /tmp/1556918773031_0.07476881997756257-0/youngandroidproject/../build/tmp/classes.dex => classes.dex
     [java] /tmp/1556918773031_0.07476881997756257-0/youngandroidproject/../build/tmp/classes2.dex => classes2.dex
     [java] Native folder: /tmp/1556918773031_0.07476881997756257-0/youngandroidproject/../build/libs
     [java] /tmp/1556918773031_0.07476881997756257-0/youngandroidproject/../build/libs/x86_64/libjingle_peerconnection_so.so => lib/x86_64/libjingle_peerconnection_so.so
     [java] /tmp/1556918773031_0.07476881997756257-0/youngandroidproject/../build/libs/arm64-v8a/libjingle_peerconnection_so.so => lib/arm64-v8a/libjingle_peerconnection_so.so
     [java] /tmp/1556918773031_0.07476881997756257-0/youngandroidproject/../build/libs/armeabi-v7a/libjingle_peerconnection_so.so => lib/armeabi-v7a/libjingle_peerconnection_so.so
     [java] May 04, 2019 2:56:39 AM com.google.appinventor.buildserver.Execution execute
     [java] INFO: ____Executing /tmp/zipalign8975614169533905047 -f 4 /tmp/1556918773031_0.07476881997756257-0/youngandroidproject/../build/deploy/MIT AI2 Companion.apk /tmp/1556918773031_0.07476881997756257-0/youngandroidproject/../build/tmp/zipaligned.apk
     [java] May 04, 2019 2:56:39 AM com.google.appinventor.buildserver.Execution execute
     [java] WARNING: ____Execution failure: 
     [java] java.io.IOException: Cannot run program "/tmp/zipalign8975614169533905047": error=2, No such file or directory
     [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
     [java] at java.lang.Runtime.exec(Runtime.java:620)
     [java] at com.google.appinventor.buildserver.Execution.execute(Execution.java:111)
     [java] at com.google.appinventor.buildserver.Compiler.runZipAlign(Compiler.java:1475)
     [java] at com.google.appinventor.buildserver.Compiler.compile(Compiler.java:1141)
     [java] at com.google.appinventor.buildserver.ProjectBuilder.build(ProjectBuilder.java:159)
     [java] at com.google.appinventor.buildserver.Main.main(Main.java:82)
     [java] Caused by: java.io.IOException: error=2, No such file or directory
     [java] at java.lang.UNIXProcess.forkAndExec(Native Method)
     [java] at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
     [java] at java.lang.ProcessImpl.start(ProcessImpl.java:134)
     [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
     [java] ... 6 more
     [java] 
     [java] May 04, 2019 2:56:39 AM com.google.appinventor.buildserver.Compiler runZipAlign
     [java] WARNING: YAIL compiler - ZIPALIGN execution failed.

BUILD FAILED
/home/ankritisachan/app-inventor/appinventor-sources/appinventor/build.xml:21: The following error occurred while executing this line:
/home/ankritisachan/app-inventor/appinventor-sources/appinventor/buildserver/build.xml:180: Java returned: 1


How can I fix this?

Evan Patton

unread,
May 4, 2019, 11:35:50 AM5/4/19
to App Inventor Open Source Development
This is because the Linux executables are 32 bit, so you need to install  the 32-bit compatability libraries for your system. There are other threads in the forum with example commands (you might want  to put in a PR with updated readme instructions once you're up and running).

Regards,
Evan

ankrit...@gmail.com

unread,
May 4, 2019, 12:46:52 PM5/4/19
to App Inventor Open Source Development
Okay, sure. Thanks.

Also, I think that Windows build system failed for me, earlier due some messed up submodules. I don't know how that happened but even on a clean branch, I still get to see some change in commit while doing git diff. Something like -
 git diff
diff --git a/appinventor/lib/blockly b/appinventor/lib/blockly
--- a/appinventor/lib/blockly
+++ b/appinventor/lib/blockly
@@ -1 +1 @@
-Subproject commit c5ead64c2b930e0794031ea999df9dca62bcf0e1
+Subproject commit c5ead64c2b930e0794031ea999df9dca62bcf0e1-dirty
diff --git a/appinventor/lib/closure-library b/appinventor/lib/closure-library
index 1611532c..effb4062 160000
--- a/appinventor/lib/closure-library
+++ b/appinventor/lib/closure-library
@@ -1 +1 @@
-Subproject commit 1611532c898d33f2a30178c17c42f955751400da
+Subproject commit effb4062e34576a011e788a0d33c1433a677f940-dirty
I don't know if this is related to the cause of build failure.
Is there something like submodule versions? Do different branches have different submodule versions? What did I mess up here?

Currently, I got a master branch which was not failing while build, so I rebased my branch(which was earlier on ucr) onto master and it built successfully. Again, I don't know why that happened. Can you figure out what could have happened here? Does doing that made any difference to the build system?

But, now I faced another issue. After running the main server, when I created a new project and tried to open it, I faced an internal server error. 
Description here -
notes = Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
foundIn = nls-1318-gbec5507f
faultData = java.lang.UnsupportedOperationException: unknown component: Switch
projectId = -1
What should I do here?

ankrit...@gmail.com

unread,
May 4, 2019, 12:48:14 PM5/4/19
to App Inventor Open Source Development
P.S. All the above description is for Windows.

Jose Dominguez

unread,
May 4, 2019, 2:01:02 PM5/4/19
to app-inventor-open-source-dev
Hi Ankriti,

for your last issue, the one about the Switch component, it might be
happening if the Switch component is not yet in master but it is only
in ucr (which I am not certain it is the case).

If you created a project after working in ucr, and try to load it in a
server compiled off master with no Switch component, that's what you
may get.

You can trash the project and start a new one. Also make sure you are
not being tricked by the browser's cache. In development tools -->
settings --> Network you can set 'Disable cache (while DevTools is
open)', so if you have the dev tools open, the cache will be
invalidated when you reload.

As far as I recall, ucr only gets merged into master when a
'component' release is prepared. So for the most part, ucr may be
ahead of master for component related code, and behind master for
other changes that do not affect components.

cheers,
José


On Sat, 4 May 2019 at 12:48, <ankrit...@gmail.com> wrote:
>
> P.S. All the above description is for Windows.
>

ankrit...@gmail.com

unread,
May 4, 2019, 2:50:16 PM5/4/19
to App Inventor Open Source Development
Hi Jose,
Thanks for the information. I disabled cache. Still the same problem. So, I guess error might be because of the difference between master and ucr like you said.

So, now I am stuck with a problem which looks something like -
If my branch is rebased onto master, it will build but old or new projects won't open.
If my branch is rebased onto ucr, it won't even build in the first place.

I will do the needful in Linux, as Evan told, and try running it there.

Evan Patton

unread,
May 4, 2019, 4:02:59 PM5/4/19
to App Inventor Open Source Development
If you haven't run ant clean then the .class files for switch, etc. will still be bundled in if you had previously compiled on ucr.

Regards,
Evan

Andrew Godwin

unread,
May 5, 2019, 7:30:45 AM5/5/19
to App Inventor Open Source Development
Don't do $ ant without first getting the Auth Key in place, atleast once. Just do this:

first cd your way into the appinventor folder, then from there do:
$ ant MakeAuthKey

You should get "BUILD SUCCESSFUL". Sweeeet!!

Afterwards, to compile your stuff, just do:
$ ant

You should get the glorious "BUILD SUCCESSFUL" thing.

Enjoy AppInventor
Reply all
Reply to author
Forward
0 new messages