Build failed error

When i save the SimpleMaths.java to appinventor-sources/appinventor/components/src
and run command its says Build faild.
What to do now i tried several times but its shows same error.

You should include the error log in your post.

This is the ERROR

Run the build command on app inventor folder path. Open the command prompt to that directory or run cd C:/appinventor-sources/appinventor first then try to run the ant extensions command.

How to run in that folder

You need to know how to open command prompt to a specific path.
How to Open Command Prompt in a Folder (lifewire.com)

2 Likes

PS C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor> ant extensions
Buildfile: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build.xml

extensions:

clean:

common_CommonVersion:

init:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\common
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\classes
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\reports
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\reports\raw
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\reports\html

CommonVersion:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\classes\CommonVersion
[exec] Result: 128
[exec] Result: 128
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\src\com\google\appinventor\common\version
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\src\com\google\appinventor\common\version
[javac] Compiling 3 source files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\classes\CommonVersion
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 4 warnings
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\classes\CommonVersion\com\google\appinventor\common\version\package-info.class
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\common\CommonVersion.jar
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\common\CommonVersion-gwt.jar

init:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\reports
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\reports\raw
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\reports\html

HtmlEntities:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\HtmlEntities
[javac] Compiling 1 source file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\HtmlEntities
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 4 warnings
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\HtmlEntities.jar

Barcode:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\Barcode
[javac] Compiling 40 source files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\Barcode
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[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] 4 warnings
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps\Barcode.jar

CopyComponentLibraries:
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps\armeabi-v7a
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps\arm64-v8a
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps\x86_64
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 63 files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 2 files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\deps

common_CommonUtils:

init:

CommonUtils:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\classes\CommonUtils
[javac] Compiling 3 source files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\classes\CommonUtils
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 4 warnings
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\common\build\classes\CommonUtils\com\google\appinventor\common\utils\package-info.class
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\common\CommonUtils.jar
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\common\CommonUtils-gwt.jar

CommonConstants:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\CommonConstants
[javac] Compiling 35 source files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\CommonConstants
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 4 warnings
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\CommonConstants\com\google\appinventor\components\common\package-info.class
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\CommonConstants.jar
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\CommonConstants-gwt.jar

AnnotationProcessors:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AnnotationProcessors
[javac] Compiling 43 source files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AnnotationProcessors
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses or overrides 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] 4 warnings
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\annotations\androidmanifest\package-info.class
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\annotations\package-info.class
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\scripts\package-info.class
[copy] Copying 22 files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AnnotationProcessors
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\AnnotationProcessors.jar

AndroidRuntime.uptodate:

AndroidRuntime:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime
[javac] Compiling 317 source files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: Wrote file file:///C:/Users/asus/Downloads/appinventor-sources-master/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/simple_components.json
[javac] Note: Wrote file file:///C:/Users/asus/Downloads/appinventor-sources-master/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/simple_components.txt
[javac] Note: Wrote file file:///C:/Users/asus/Downloads/appinventor-sources-master/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/simple_components_build_info.json
[javac] Note: Wrote file file:///C:/Users/asus/Downloads/appinventor-sources-master/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/AutogeneratedOdeMessages.java
[javac] Note: Wrote file file:///C:/Users/asus/Downloads/appinventor-sources-master/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/ComponentsTranslation.java
[javac] C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\src\com\google\appinventor\components\runtime\util\NanoHTTPD.java:667: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
[javac] matchbytes.addElement(new Integer(matchbyte));
[javac] ^
[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] 5 warnings
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\util\package-info.class
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\androidmanifest\package-info.class
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\collect\package-info.class
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\package-info.class
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\package-info.class
[javac] Creating empty C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\errors\package-info.class
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\AndroidRuntime.jar
[copy] Copying 3 files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
[copy] Copying 2 files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
[copy] Copying 12 files to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\docs\markdown\reference\components

ExternalComponentGenerator:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\ExternalComponentGenerator
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\externalComponents
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\externalComponents-class
[javac] Compiling 1 source file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\classes\ExternalComponentGenerator
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 4 warnings
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.apache.tools.ant.types.Permissions (file:/C:/Users/asus/Downloads/apache-ant-1.9.16-bin/apache-ant-1.9.16/lib/ant.jar)
WARNING: Please consider reporting this to the maintainers of org.apache.tools.ant.types.Permissions
WARNING: System::setSecurityManager will be removed in a future release
[java]
[java] Extensions : Generating extensions
[java]
[java] Extensions : Generating files [io.kodular]
[java] Extensions : Skipping missing icon images/extension.png
[java] Extensions : Copying file io\kodular\SimpleMaths.class
[java] Extensions : Successfully created io.kodular build info file
[java] Extensions : Successfully created io.kodular extension properties file

unjarAllExtensionLibraries:

unjarExtensionLibraries:

jarAllExtensions:

jarExtension:
[jar] Building jar: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\externalComponents-class\io.kodular.jar

ProGuard:
[copy] Copying 1 file to C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\externalComponents\io.kodular\files
[echo] Generated build file AndroidRuntime.jar [io.kodular]

dexAllExtensions:

dexExtension:
[echo] Dexing extension: io.kodular

extensions:
[mkdir] Created dir: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\extensions

packExtension:
[zip] Building zip: C:\Users\asus\Downloads\appinventor-sources-master\appinventor-sources-master\appinventor\components\build\extensions\io.kodular.aix

BUILD SUCCESSFUL
Total time: 1 minute 23 seconds

Is this correct

1 Like

What to do next

Extension built successfully. You can find it at appinventor-sources/appinventor/components/build/extensions path.

2 Likes

Thank you for helping me.
:+1: :+1: :+1:

1 Like

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